]> git.proxmox.com Git - pve-docs.git/commitdiff
docs: document 'dirs' parameter for directory storage
authorLeo Nunner <l.nunner@proxmox.com>
Mon, 2 Jan 2023 16:04:38 +0000 (17:04 +0100)
committerWolfgang Bumiller <w.bumiller@errno.eu>
Thu, 5 Jan 2023 13:34:59 +0000 (14:34 +0100)
Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
pve-storage-cifs.adoc
pve-storage-dir.adoc
pve-storage-nfs.adoc

index bb4b90228fd3b9fb2b30b9c6402b8771022f10b8..4d93727b43dde8d710c699f1ae6ee68d945a5c27 100644 (file)
@@ -57,6 +57,10 @@ path::
 
 The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
 
+dirs::
+
+Overrides for the default directory layout. Optional.
+
 .Configuration Example (`/etc/pve/storage.cfg`)
 ----
 cifs: backup
index 4116fe51de7605730e0946a5f8d8079d0a745dc7..ec1b9570b31ebb9844c28de82bd06f4b26bd00ed 100644 (file)
@@ -46,9 +46,18 @@ storage backends.
 Configuration
 ~~~~~~~~~~~~~
 
-This backend supports all common storage properties, and adds an
-additional property called `path` to specify the directory. This
-needs to be an absolute file system path.
+This backend supports all common storage properties, and adds two
+additional properties. The `path` property is used to specify the
+directory. This needs to be an absolute file system path.
+
+The optional `dirs` property allows for the default layout to be
+changed. It consists of a comma-separated list of identifiers in
+the following format:
+
+ vtype:path
+
+Where `vtype` is one of the allowed content types for the storage, and
+`path` is an absolute file system path.
 
 .Configuration Example (`/etc/pve/storage.cfg`)
 ----
@@ -57,12 +66,12 @@ dir: backup
         content backup
         prune-backups keep-last=7
         max-protected-backups 3
+        dirs backup:/custom/backup/dir
 ----
 
 The above configuration defines a storage pool called `backup`. That pool can be
 used to store up to 7 regular backups (`keep-last=7`) and 3 protected backups
-per VM. The real path for the backup files is `/mnt/backup/dump/...`.
-
+per VM. The real path for the backup files is `/mnt/backup/custom/backup/dir/...`.
 
 File naming conventions
 ~~~~~~~~~~~~~~~~~~~~~~~
index 9a900571740febaa2a5671bd95bcfb704fd1a4e6..95ee45dddeb689f696b5bc1b38d6c9925434b7ac 100644 (file)
@@ -40,6 +40,10 @@ path::
 
 The local mount point (defaults to `/mnt/pve/<STORAGE_ID>/`).
 
+dirs::
+
+Overrides for the default directory layout. Optional.
+
 options::
 
 NFS mount options (see `man nfs`).