]> git.proxmox.com Git - pve-docs.git/blobdiff - pvesm.1-synopsis.adoc
fix #5429: network: override device names: include Type=ether
[pve-docs.git] / pvesm.1-synopsis.adoc
index 666c39b44cd9e88dcc9916de849bbe773ebfa13e..e5f885f21f726e003e83ccea2f5a43161865d03d 100644 (file)
@@ -4,11 +4,11 @@
 
 Create a new storage.
 
-`<type>`: `<cifs | dir | drbd | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | rbd | sheepdog | zfs | zfspool>` ::
+`<type>`: `<btrfs | cephfs | cifs | dir | esxi | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | pbs | rbd | zfs | zfspool>` ::
 
 Storage type.
 
-`<storage>`: `<string>` ::
+`<storage>`: `<storage ID>` ::
 
 The storage identifier.
 
@@ -26,7 +26,7 @@ block size
 
 `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
 
-Set bandwidth/io limits various operations.
+Set I/O bandwidth limit for various operations (in KiB/s).
 
 `--comstar_hg` `<string>` ::
 
@@ -42,6 +42,26 @@ Allowed content types.
 +
 NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
 
+`--content-dirs` `<string>` ::
+
+Overrides for default content type directories.
+
+`--create-base-path` `<boolean>` ('default =' `yes`)::
+
+Create the base directory if it doesn't exist.
+
+`--create-subdirs` `<boolean>` ('default =' `yes`)::
+
+Populate the directory with the default structure.
+
+`--data-pool` `<string>` ::
+
+Data Pool (for erasure coding only)
+
+`--datastore` `<string>` ::
+
+Proxmox Backup Server datastore name.
+
 `--disable` `<boolean>` ::
 
 Flag to disable the storage.
@@ -50,14 +70,30 @@ Flag to disable the storage.
 
 CIFS domain.
 
+`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
+
+Encryption key. Use 'autogen' to generate one automatically without passphrase.
+
 `--export` `<string>` ::
 
 NFS export path.
 
+`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
+
+Certificate SHA 256 fingerprint.
+
 `--format` `<string>` ::
 
 Default image format.
 
+`--fs-name` `<string>` ::
+
+The Ceph filesystem name.
+
+`--fuse` `<boolean>` ::
+
+Mount CephFS through FUSE.
+
 `--is_mountpoint` `<string>` ('default =' `no`)::
 
 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.
@@ -66,25 +102,53 @@ Assume the given path is an externally managed mountpoint and consider the stora
 
 iscsi provider
 
+`--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
+
+Client keyring contents (for external clusters).
+
 `--krbd` `<boolean>` ::
 
-Access rbd through krbd kernel module.
+Always access rbd through krbd kernel module.
+
+`--lio_tpg` `<string>` ::
+
+target portal group for Linux LIO targets
+
+`--master-pubkey` `a file containing a PEM-formatted master public key` ::
+
+Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
+
+`--max-protected-backups` `<integer> (-1 - N)` ('default =' `Unlimited for users with Datastore.Allocate privilege, 5 for other users`)::
+
+Maximal number of protected backups per guest. Use '-1' for unlimited.
 
 `--maxfiles` `<integer> (0 - N)` ::
 
-Maximal number of backup files per VM. Use '0' for unlimted.
+Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
 
 `--mkdir` `<boolean>` ('default =' `yes`)::
 
-Create the directory if it doesn't exist.
+Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.
 
 `--monhost` `<string>` ::
 
 IP addresses of monitors (for external clusters).
 
+`--mountpoint` `<string>` ::
+
+mount point
+
+`--namespace` `<string>` ::
+
+Namespace.
+
+`--nocow` `<boolean>` ('default =' `0`)::
+
+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.
+
 `--nodes` `<string>` ::
 
-List of cluster node names.
+List of nodes for which the storage configuration applies.
 
 `--nowritecache` `<boolean>` ::
 
@@ -92,11 +156,11 @@ disable write caching on the target
 
 `--options` `<string>` ::
 
-NFS mount options (see 'man nfs')
+NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')
 
-`--password` ::
+`--password` `<password>` ::
 
-Password for CIFS share.
+Password for accessing the share/datastore.
 
 `--path` `<string>` ::
 
@@ -106,13 +170,21 @@ File system path.
 
 Pool.
 
+`--port` `<integer> (1 - 65535)` ::
+
+For non default port.
+
 `--portal` `<string>` ::
 
 iSCSI portal (IP or DNS name with optional port).
 
-`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
+`--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
+
+Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
 
-The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster.
+`--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
+
+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.
 
 `--saferemove` `<boolean>` ::
 
@@ -138,16 +210,24 @@ CIFS share.
 
 `--shared` `<boolean>` ::
 
-Mark storage as shared.
+Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
 
-`--smbversion` `<string>` ::
+`--skip-cert-verification` `<boolean>` ('default =' `false`)::
 
-no description available
+Disable TLS certificate verification, only enable on fully trusted networks!
+
+`--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
+
+SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
 
 `--sparse` `<boolean>` ::
 
 use sparse volumes
 
+`--subdir` `<string>` ::
+
+Subdir to mount.
+
 `--tagged_only` `<boolean>` ::
 
 Only use logical volumes tagged with 'pve-vm-ID'.
@@ -180,11 +260,11 @@ Glusterfs Volume.
 
 Allocate disk images.
 
-`<storage>`: `<string>` ::
+`<storage>`: `<storage ID>` ::
 
 The storage identifier.
 
-`<vmid>`: `<integer> (1 - N)` ::
+`<vmid>`: `<integer> (100 - 999999999)` ::
 
 Specify owner VM
 
@@ -202,35 +282,23 @@ no description available
 +
 NOTE: Requires option(s): `size`
 
-*pvesm cifsscan* `<server>` `[OPTIONS]`
-
-Scan remote CIFS server.
-
-`<server>`: `<string>` ::
-
-no description available
+*pvesm apiinfo*
 
-`--domain` `<string>` ::
+Returns APIVER and APIAGE.
 
-no description available
+*pvesm cifsscan*
 
-`--password` ::
-
-no description available
-
-`--username` `<string>` ::
-
-no description available
+An alias for 'pvesm scan cifs'.
 
 *pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
 
-Export a volume.
+Used internally to export a volume.
 
 `<volume>`: `<string>` ::
 
 Volume identifier
 
-`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
+`<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
 
 Export stream format
 
@@ -238,14 +306,18 @@ Export stream format
 
 Destination file name
 
-`--base` `(?^:[a-z0-9_\-]{1,40})` ::
+`--base` `(?^i:[a-z0-9_\-]{1,40})` ::
 
 Snapshot to start an incremental stream from
 
-`--snapshot` `(?^:[a-z0-9_\-]{1,40})` ::
+`--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
 
 Snapshot to export
 
+`--snapshot-list` `<string>` ::
+
+Ordered list of snapshots to transfer
+
 `--with-snapshots` `<boolean>` ('default =' `0`)::
 
 Whether to include intermediate snapshots in the stream
@@ -266,17 +338,17 @@ Delete volume
 
 Volume identifier
 
-`--storage` `<string>` ::
+`--delay` `<integer> (1 - 30)` ::
 
-The storage identifier.
+Time to wait for the task to finish. We return 'null' if the task finish within that time.
 
-*pvesm glusterfsscan* `<server>`
+`--storage` `<storage ID>` ::
 
-Scan remote GlusterFS server.
+The storage identifier.
 
-`<server>`: `<string>` ::
+*pvesm glusterfsscan*
 
-no description available
+An alias for 'pvesm scan glusterfs'.
 
 *pvesm help* `[OPTIONS]`
 
@@ -292,45 +364,49 @@ Verbose output format.
 
 *pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
 
-Import a volume.
+Used internally to import a volume.
 
 `<volume>`: `<string>` ::
 
 Volume identifier
 
-`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
+`<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
 
 Import stream format
 
 `<filename>`: `<string>` ::
 
-Source file name
+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.
+
+`--allow-rename` `<boolean>` ('default =' `0`)::
 
-`--base` `(?^:[a-z0-9_\-]{1,40})` ::
+Choose a new volume ID if the requested volume ID already exists, instead of throwing an error.
+
+`--base` `(?^i:[a-z0-9_\-]{1,40})` ::
 
 Base snapshot of an incremental stream
 
-`--delete-snapshot` `(?^:[a-z0-9_\-]{1,80})` ::
+`--delete-snapshot` `(?^i:[a-z0-9_\-]{1,80})` ::
 
 A snapshot to delete on success
 
-`--with-snapshots` `<boolean>` ('default =' `0`)::
+`--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
 
-Whether the stream includes intermediate snapshots
+The current-state snapshot if the stream contains snapshots
 
-*pvesm iscsiscan* `--portal <string>` `[OPTIONS]`
+`--with-snapshots` `<boolean>` ('default =' `0`)::
 
-Scan remote iSCSI server.
+Whether the stream includes intermediate snapshots
 
-`--portal` `<string>` ::
+*pvesm iscsiscan*
 
-no description available
+An alias for 'pvesm scan iscsi'.
 
 *pvesm list* `<storage>` `[OPTIONS]`
 
 List storage content.
 
-`<storage>`: `<string>` ::
+`<storage>`: `<storage ID>` ::
 
 The storage identifier.
 
@@ -338,15 +414,129 @@ The storage identifier.
 
 Only list content of this type.
 
-`--vmid` `<integer> (1 - N)` ::
+`--vmid` `<integer> (100 - 999999999)` ::
 
 Only list images for this VM
 
 *pvesm lvmscan*
 
+An alias for 'pvesm scan lvm'.
+
+*pvesm lvmthinscan*
+
+An alias for 'pvesm scan lvmthin'.
+
+*pvesm nfsscan*
+
+An alias for 'pvesm scan nfs'.
+
+*pvesm path* `<volume>`
+
+Get filesystem path for specified volume
+
+`<volume>`: `<string>` ::
+
+Volume identifier
+
+*pvesm prune-backups* `<storage>` `[OPTIONS]`
+
+Prune backups. Only those using the standard naming scheme are considered.
+If no keep options are specified, those from the storage configuration are
+used.
+
+`<storage>`: `<storage ID>` ::
+
+The storage identifier.
+
+`--dry-run` `<boolean>` ::
+
+Only show what would be pruned, don't delete anything.
+
+`--keep-all` `<boolean>` ::
+
+Keep all backups. Conflicts with the other options when true.
+
+`--keep-daily` `<N>` ::
+
+Keep backups for the last <N> different days. If there is morethan one backup for a single day, only the latest one is kept.
+
+`--keep-hourly` `<N>` ::
+
+Keep backups for the last <N> different hours. If there is morethan one backup for a single hour, only the latest one is kept.
+
+`--keep-last` `<N>` ::
+
+Keep the last <N> backups.
+
+`--keep-monthly` `<N>` ::
+
+Keep backups for the last <N> different months. If there is morethan one backup for a single month, only the latest one is kept.
+
+`--keep-weekly` `<N>` ::
+
+Keep backups for the last <N> different weeks. If there is morethan one backup for a single week, only the latest one is kept.
+
+`--keep-yearly` `<N>` ::
+
+Keep backups for the last <N> different years. If there is morethan one backup for a single year, only the latest one is kept.
+
+`--type` `<lxc | qemu>` ::
+
+Either 'qemu' or 'lxc'. Only consider backups for guests of this type.
+
+`--vmid` `<integer> (100 - 999999999)` ::
+
+Only consider backups for this guest.
+
+*pvesm remove* `<storage>`
+
+Delete storage configuration.
+
+`<storage>`: `<storage ID>` ::
+
+The storage identifier.
+
+*pvesm scan cifs* `<server>` `[OPTIONS]`
+
+Scan remote CIFS server.
+
+`<server>`: `<string>` ::
+
+The server address (name or IP).
+
+`--domain` `<string>` ::
+
+SMB domain (Workgroup).
+
+`--password` `<password>` ::
+
+User password.
+
+`--username` `<string>` ::
+
+User name.
+
+*pvesm scan glusterfs* `<server>`
+
+Scan remote GlusterFS server.
+
+`<server>`: `<string>` ::
+
+The server address (name or IP).
+
+*pvesm scan iscsi* `<portal>`
+
+Scan remote iSCSI server.
+
+`<portal>`: `<string>` ::
+
+The iSCSI portal (IP or DNS name with optional port).
+
+*pvesm scan lvm*
+
 List local LVM volume groups.
 
-*pvesm lvmthinscan* `<vg>`
+*pvesm scan lvmthin* `<vg>`
 
 List local LVM Thin Pools.
 
@@ -354,35 +544,47 @@ List local LVM Thin Pools.
 
 no description available
 
-*pvesm nfsscan* `<server>`
+*pvesm scan nfs* `<server>`
 
 Scan remote NFS server.
 
 `<server>`: `<string>` ::
 
-no description available
+The server address (name or IP).
 
-*pvesm path* `<volume>`
+*pvesm scan pbs* `<server> <username> --password <string>` `[OPTIONS]` `[FORMAT_OPTIONS]`
 
-Get filesystem path for specified volume
+Scan remote Proxmox Backup Server.
 
-`<volume>`: `<string>` ::
+`<server>`: `<string>` ::
 
-Volume identifier
+The server address (name or IP).
 
-*pvesm remove* `<storage>`
+`<username>`: `<string>` ::
 
-Delete storage configuration.
+User-name or API token-ID.
 
-`<storage>`: `<string>` ::
+`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
 
-The storage identifier.
+Certificate SHA 256 fingerprint.
+
+`--password` `<string>` ::
+
+User password or API token secret.
+
+`--port` `<integer> (1 - 65535)` ('default =' `8007`)::
+
+Optional port.
+
+*pvesm scan zfs*
+
+Scan zfs pool list on local node.
 
 *pvesm set* `<storage>` `[OPTIONS]`
 
 Update storage configuration.
 
-`<storage>`: `<string>` ::
+`<storage>`: `<storage ID>` ::
 
 The storage identifier.
 
@@ -392,7 +594,7 @@ block size
 
 `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
 
-Set bandwidth/io limits various operations.
+Set I/O bandwidth limit for various operations (in KiB/s).
 
 `--comstar_hg` `<string>` ::
 
@@ -408,13 +610,29 @@ Allowed content types.
 +
 NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
 
+`--content-dirs` `<string>` ::
+
+Overrides for default content type directories.
+
+`--create-base-path` `<boolean>` ('default =' `yes`)::
+
+Create the base directory if it doesn't exist.
+
+`--create-subdirs` `<boolean>` ('default =' `yes`)::
+
+Populate the directory with the default structure.
+
+`--data-pool` `<string>` ::
+
+Data Pool (for erasure coding only)
+
 `--delete` `<string>` ::
 
 A list of settings you want to delete.
 
 `--digest` `<string>` ::
 
-Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
+Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
 
 `--disable` `<boolean>` ::
 
@@ -424,33 +642,77 @@ Flag to disable the storage.
 
 CIFS domain.
 
+`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
+
+Encryption key. Use 'autogen' to generate one automatically without passphrase.
+
+`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
+
+Certificate SHA 256 fingerprint.
+
 `--format` `<string>` ::
 
 Default image format.
 
+`--fs-name` `<string>` ::
+
+The Ceph filesystem name.
+
+`--fuse` `<boolean>` ::
+
+Mount CephFS through FUSE.
+
 `--is_mountpoint` `<string>` ('default =' `no`)::
 
 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.
 
+`--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
+
+Client keyring contents (for external clusters).
+
 `--krbd` `<boolean>` ::
 
-Access rbd through krbd kernel module.
+Always access rbd through krbd kernel module.
+
+`--lio_tpg` `<string>` ::
+
+target portal group for Linux LIO targets
+
+`--master-pubkey` `a file containing a PEM-formatted master public key` ::
+
+Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
+
+`--max-protected-backups` `<integer> (-1 - N)` ('default =' `Unlimited for users with Datastore.Allocate privilege, 5 for other users`)::
+
+Maximal number of protected backups per guest. Use '-1' for unlimited.
 
 `--maxfiles` `<integer> (0 - N)` ::
 
-Maximal number of backup files per VM. Use '0' for unlimted.
+Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
 
 `--mkdir` `<boolean>` ('default =' `yes`)::
 
-Create the directory if it doesn't exist.
+Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.
 
 `--monhost` `<string>` ::
 
 IP addresses of monitors (for external clusters).
 
+`--mountpoint` `<string>` ::
+
+mount point
+
+`--namespace` `<string>` ::
+
+Namespace.
+
+`--nocow` `<boolean>` ('default =' `0`)::
+
+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.
+
 `--nodes` `<string>` ::
 
-List of cluster node names.
+List of nodes for which the storage configuration applies.
 
 `--nowritecache` `<boolean>` ::
 
@@ -458,19 +720,27 @@ disable write caching on the target
 
 `--options` `<string>` ::
 
-NFS mount options (see 'man nfs')
+NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')
 
-`--password` ::
+`--password` `<password>` ::
 
-Password for CIFS share.
+Password for accessing the share/datastore.
 
 `--pool` `<string>` ::
 
 Pool.
 
-`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
+`--port` `<integer> (1 - 65535)` ::
+
+For non default port.
+
+`--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
+
+Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
+
+`--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
 
-The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster.
+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.
 
 `--saferemove` `<boolean>` ::
 
@@ -492,16 +762,24 @@ NOTE: Requires option(s): `server`
 
 `--shared` `<boolean>` ::
 
-Mark storage as shared.
+Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
 
-`--smbversion` `<string>` ::
+`--skip-cert-verification` `<boolean>` ('default =' `false`)::
 
-no description available
+Disable TLS certificate verification, only enable on fully trusted networks!
+
+`--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
+
+SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
 
 `--sparse` `<boolean>` ::
 
 use sparse volumes
 
+`--subdir` `<string>` ::
+
+Subdir to mount.
+
 `--tagged_only` `<boolean>` ::
 
 Only use logical volumes tagged with 'pve-vm-ID'.
@@ -530,7 +808,7 @@ Only list stores which are enabled (not disabled in config).
 
 Include information about formats
 
-`--storage` `<string>` ::
+`--storage` `<storage ID>` ::
 
 Only list status for  specified storage
 
@@ -540,6 +818,6 @@ If target is different to 'node', we only lists shared storages which content is
 
 *pvesm zfsscan*
 
-Scan zfs pool list on local node.
+An alias for 'pvesm scan zfs'.