1 *pvesm* `<COMMAND> [ARGS] [OPTIONS]`
3 *pvesm add* `<type> <storage>` `[OPTIONS]`
7 `<type>`: `<btrfs | cephfs | cifs | dir | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | pbs | rbd | zfs | zfspool>` ::
11 `<storage>`: `<string>` ::
13 The storage identifier.
15 `--authsupported` `<string>` ::
19 `--base` `<string>` ::
21 Base volume. This volume is automatically activated.
23 `--blocksize` `<string>` ::
27 `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
29 Set bandwidth/io limits various operations.
31 `--comstar_hg` `<string>` ::
33 host group for comstar views
35 `--comstar_tg` `<string>` ::
37 target group for comstar views
39 `--content` `<string>` ::
41 Allowed content types.
43 NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
45 `--datastore` `<string>` ::
47 Proxmox Backup Server datastore name.
49 `--disable` `<boolean>` ::
51 Flag to disable the storage.
53 `--domain` `<string>` ::
57 `--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
59 Encryption key. Use 'autogen' to generate one automatically without passphrase.
61 `--export` `<string>` ::
65 `--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
67 Certificate SHA 256 fingerprint.
69 `--format` `<string>` ::
73 `--fs-name` `<string>` ::
75 The Ceph filesystem name.
77 `--fuse` `<boolean>` ::
79 Mount CephFS through FUSE.
81 `--is_mountpoint` `<string>` ('default =' `no`)::
83 Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
85 `--iscsiprovider` `<string>` ::
89 `--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
91 Client keyring contents (for external clusters).
93 `--krbd` `<boolean>` ::
95 Always access rbd through krbd kernel module.
97 `--lio_tpg` `<string>` ::
99 target portal group for Linux LIO targets
101 `--master-pubkey` `a file containing a PEM-formatted master public key` ::
103 Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
105 `--maxfiles` `<integer> (0 - N)` ::
107 Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
109 `--mkdir` `<boolean>` ('default =' `yes`)::
111 Create the directory if it doesn't exist.
113 `--monhost` `<string>` ::
115 IP addresses of monitors (for external clusters).
117 `--mountpoint` `<string>` ::
121 `--namespace` `<string>` ::
125 `--nocow` `<boolean>` ('default =' `0`)::
127 Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
129 `--nodes` `<string>` ::
131 List of cluster node names.
133 `--nowritecache` `<boolean>` ::
135 disable write caching on the target
137 `--options` `<string>` ::
139 NFS mount options (see 'man nfs')
141 `--password` `<password>` ::
143 Password for accessing the share/datastore.
145 `--path` `<string>` ::
149 `--pool` `<string>` ::
153 `--port` `<integer> (1 - 65535)` ('default =' `8007`)::
155 For non default port.
157 `--portal` `<string>` ::
159 iSCSI portal (IP or DNS name with optional port).
161 `--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
163 Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
165 `--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
167 The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
169 `--saferemove` `<boolean>` ::
171 Zero-out data when removing LVs.
173 `--saferemove_throughput` `<string>` ::
175 Wipe throughput (cstream -t parameter value).
177 `--server` `<string>` ::
179 Server IP or DNS name.
181 `--server2` `<string>` ::
183 Backup volfile server IP or DNS name.
185 NOTE: Requires option(s): `server`
187 `--share` `<string>` ::
191 `--shared` `<boolean>` ::
193 Mark storage as shared.
195 `--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
197 SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
199 `--sparse` `<boolean>` ::
203 `--subdir` `<string>` ::
207 `--tagged_only` `<boolean>` ::
209 Only use logical volumes tagged with 'pve-vm-ID'.
211 `--target` `<string>` ::
215 `--thinpool` `<string>` ::
217 LVM thin pool LV name.
219 `--transport` `<rdma | tcp | unix>` ::
221 Gluster transport: tcp or rdma
223 `--username` `<string>` ::
227 `--vgname` `<string>` ::
231 `--volume` `<string>` ::
235 *pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
237 Allocate disk images.
239 `<storage>`: `<string>` ::
241 The storage identifier.
243 `<vmid>`: `<integer> (1 - N)` ::
247 `<filename>`: `<string>` ::
249 The name of the file to create.
251 `<size>`: `\d+[MG]?` ::
253 Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
255 `--format` `<qcow2 | raw | subvol>` ::
257 no description available
259 NOTE: Requires option(s): `size`
263 Returns APIVER and APIAGE.
267 An alias for 'pvesm scan cifs'.
269 *pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
271 Used internally to export a volume.
273 `<volume>`: `<string>` ::
277 `<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
281 `<filename>`: `<string>` ::
283 Destination file name
285 `--base` `(?^i:[a-z0-9_\-]{1,40})` ::
287 Snapshot to start an incremental stream from
289 `--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
293 `--snapshot-list` `<string>` ::
295 Ordered list of snapshots to transfer
297 `--with-snapshots` `<boolean>` ('default =' `0`)::
299 Whether to include intermediate snapshots in the stream
301 *pvesm extractconfig* `<volume>`
303 Extract configuration from vzdump backup archive.
305 `<volume>`: `<string>` ::
309 *pvesm free* `<volume>` `[OPTIONS]`
313 `<volume>`: `<string>` ::
317 `--delay` `<integer> (1 - 30)` ::
319 Time to wait for the task to finish. We return 'null' if the task finish within that time.
321 `--storage` `<string>` ::
323 The storage identifier.
325 *pvesm glusterfsscan*
327 An alias for 'pvesm scan glusterfs'.
329 *pvesm help* `[OPTIONS]`
331 Get help about specified command.
333 `--extra-args` `<array>` ::
335 Shows help for a specific command
337 `--verbose` `<boolean>` ::
339 Verbose output format.
341 *pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
343 Used internally to import a volume.
345 `<volume>`: `<string>` ::
349 `<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
353 `<filename>`: `<string>` ::
355 Source file name. For '-' stdin is used, the tcp://<IP-or-CIDR> format allows to use a TCP connection, the unix://PATH-TO-SOCKET format a UNIX socket as input.Else, the file is treated as common file.
357 `--allow-rename` `<boolean>` ('default =' `0`)::
359 Choose a new volume ID if the requested volume ID already exists, instead of throwing an error.
361 `--base` `(?^i:[a-z0-9_\-]{1,40})` ::
363 Base snapshot of an incremental stream
365 `--delete-snapshot` `(?^i:[a-z0-9_\-]{1,80})` ::
367 A snapshot to delete on success
369 `--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
371 The current-state snapshot if the stream contains snapshots
373 `--with-snapshots` `<boolean>` ('default =' `0`)::
375 Whether the stream includes intermediate snapshots
379 An alias for 'pvesm scan iscsi'.
381 *pvesm list* `<storage>` `[OPTIONS]`
383 List storage content.
385 `<storage>`: `<string>` ::
387 The storage identifier.
389 `--content` `<string>` ::
391 Only list content of this type.
393 `--vmid` `<integer> (1 - N)` ::
395 Only list images for this VM
399 An alias for 'pvesm scan lvm'.
403 An alias for 'pvesm scan lvmthin'.
407 An alias for 'pvesm scan nfs'.
409 *pvesm path* `<volume>`
411 Get filesystem path for specified volume
413 `<volume>`: `<string>` ::
417 *pvesm prune-backups* `<storage>` `[OPTIONS]`
419 Prune backups. Only those using the standard naming scheme are considered.
420 If no keep options are specified, those from the storage configuration are
423 `<storage>`: `<string>` ::
425 The storage identifier.
427 `--dry-run` `<boolean>` ::
429 Only show what would be pruned, don't delete anything.
431 `--keep-all` `<boolean>` ::
433 Keep all backups. Conflicts with the other options when true.
435 `--keep-daily` `<N>` ::
437 Keep backups for the last <N> different days. If there is morethan one backup for a single day, only the latest one is kept.
439 `--keep-hourly` `<N>` ::
441 Keep backups for the last <N> different hours. If there is morethan one backup for a single hour, only the latest one is kept.
443 `--keep-last` `<N>` ::
445 Keep the last <N> backups.
447 `--keep-monthly` `<N>` ::
449 Keep backups for the last <N> different months. If there is morethan one backup for a single month, only the latest one is kept.
451 `--keep-weekly` `<N>` ::
453 Keep backups for the last <N> different weeks. If there is morethan one backup for a single week, only the latest one is kept.
455 `--keep-yearly` `<N>` ::
457 Keep backups for the last <N> different years. If there is morethan one backup for a single year, only the latest one is kept.
459 `--type` `<lxc | qemu>` ::
461 Either 'qemu' or 'lxc'. Only consider backups for guests of this type.
463 `--vmid` `<integer> (1 - N)` ::
465 Only consider backups for this guest.
467 *pvesm remove* `<storage>`
469 Delete storage configuration.
471 `<storage>`: `<string>` ::
473 The storage identifier.
475 *pvesm scan cifs* `<server>` `[OPTIONS]`
477 Scan remote CIFS server.
479 `<server>`: `<string>` ::
481 The server address (name or IP).
483 `--domain` `<string>` ::
485 SMB domain (Workgroup).
487 `--password` `<password>` ::
491 `--username` `<string>` ::
495 *pvesm scan glusterfs* `<server>`
497 Scan remote GlusterFS server.
499 `<server>`: `<string>` ::
501 The server address (name or IP).
503 *pvesm scan iscsi* `<portal>`
505 Scan remote iSCSI server.
507 `<portal>`: `<string>` ::
509 The iSCSI portal (IP or DNS name with optional port).
513 List local LVM volume groups.
515 *pvesm scan lvmthin* `<vg>`
517 List local LVM Thin Pools.
519 `<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
521 no description available
523 *pvesm scan nfs* `<server>`
525 Scan remote NFS server.
527 `<server>`: `<string>` ::
529 The server address (name or IP).
531 *pvesm scan pbs* `<server> <username> --password <string>` `[OPTIONS]` `[FORMAT_OPTIONS]`
533 Scan remote Proxmox Backup Server.
535 `<server>`: `<string>` ::
537 The server address (name or IP).
539 `<username>`: `<string>` ::
541 User-name or API token-ID.
543 `--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
545 Certificate SHA 256 fingerprint.
547 `--password` `<string>` ::
549 User password or API token secret.
551 `--port` `<integer> (1 - 65535)` ('default =' `8007`)::
557 Scan zfs pool list on local node.
559 *pvesm set* `<storage>` `[OPTIONS]`
561 Update storage configuration.
563 `<storage>`: `<string>` ::
565 The storage identifier.
567 `--blocksize` `<string>` ::
571 `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
573 Set bandwidth/io limits various operations.
575 `--comstar_hg` `<string>` ::
577 host group for comstar views
579 `--comstar_tg` `<string>` ::
581 target group for comstar views
583 `--content` `<string>` ::
585 Allowed content types.
587 NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
589 `--delete` `<string>` ::
591 A list of settings you want to delete.
593 `--digest` `<string>` ::
595 Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
597 `--disable` `<boolean>` ::
599 Flag to disable the storage.
601 `--domain` `<string>` ::
605 `--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
607 Encryption key. Use 'autogen' to generate one automatically without passphrase.
609 `--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
611 Certificate SHA 256 fingerprint.
613 `--format` `<string>` ::
615 Default image format.
617 `--fs-name` `<string>` ::
619 The Ceph filesystem name.
621 `--fuse` `<boolean>` ::
623 Mount CephFS through FUSE.
625 `--is_mountpoint` `<string>` ('default =' `no`)::
627 Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
629 `--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
631 Client keyring contents (for external clusters).
633 `--krbd` `<boolean>` ::
635 Always access rbd through krbd kernel module.
637 `--lio_tpg` `<string>` ::
639 target portal group for Linux LIO targets
641 `--master-pubkey` `a file containing a PEM-formatted master public key` ::
643 Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
645 `--maxfiles` `<integer> (0 - N)` ::
647 Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
649 `--mkdir` `<boolean>` ('default =' `yes`)::
651 Create the directory if it doesn't exist.
653 `--monhost` `<string>` ::
655 IP addresses of monitors (for external clusters).
657 `--mountpoint` `<string>` ::
661 `--namespace` `<string>` ::
665 `--nocow` `<boolean>` ('default =' `0`)::
667 Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
669 `--nodes` `<string>` ::
671 List of cluster node names.
673 `--nowritecache` `<boolean>` ::
675 disable write caching on the target
677 `--options` `<string>` ::
679 NFS mount options (see 'man nfs')
681 `--password` `<password>` ::
683 Password for accessing the share/datastore.
685 `--pool` `<string>` ::
689 `--port` `<integer> (1 - 65535)` ('default =' `8007`)::
691 For non default port.
693 `--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
695 Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
697 `--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
699 The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
701 `--saferemove` `<boolean>` ::
703 Zero-out data when removing LVs.
705 `--saferemove_throughput` `<string>` ::
707 Wipe throughput (cstream -t parameter value).
709 `--server` `<string>` ::
711 Server IP or DNS name.
713 `--server2` `<string>` ::
715 Backup volfile server IP or DNS name.
717 NOTE: Requires option(s): `server`
719 `--shared` `<boolean>` ::
721 Mark storage as shared.
723 `--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
725 SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
727 `--sparse` `<boolean>` ::
731 `--subdir` `<string>` ::
735 `--tagged_only` `<boolean>` ::
737 Only use logical volumes tagged with 'pve-vm-ID'.
739 `--transport` `<rdma | tcp | unix>` ::
741 Gluster transport: tcp or rdma
743 `--username` `<string>` ::
747 *pvesm status* `[OPTIONS]`
749 Get status for all datastores.
751 `--content` `<string>` ::
753 Only list stores which support this content type.
755 `--enabled` `<boolean>` ('default =' `0`)::
757 Only list stores which are enabled (not disabled in config).
759 `--format` `<boolean>` ('default =' `0`)::
761 Include information about formats
763 `--storage` `<string>` ::
765 Only list status for specified storage
767 `--target` `<string>` ::
769 If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
773 An alias for 'pvesm scan zfs'.