]> git.proxmox.com Git - pve-storage.git/commitdiff
config: add backup content type to default local storage
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 16 Jun 2021 07:26:58 +0000 (09:26 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 16 Jun 2021 11:20:35 +0000 (13:20 +0200)
which is used if there is no ('dir'-type) 'local' entry. Storage configurations
made by the installer also support backups for the 'local' storage, and the
'prune-backups' parameter is not really useful otherwise.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/Plugin.pm

index f0c15d5f21868e777bb3c988fe340202be1282aa..948002e306864bd5c8e2619b79389559ed720f1c 100644 (file)
@@ -404,7 +404,14 @@ sub parse_config {
            priority => 0, # force first entry
            path => '/var/lib/vz',
            'prune-backups' => 'keep-all=1',
-           content => { images => 1, rootdir => 1, vztmpl => 1, iso => 1, snippets => 1},
+           content => {
+               backup => 1,
+               images => 1,
+               iso => 1,
+               rootdir => 1,
+               snippets => 1,
+               vztmpl => 1,
+           },
        };
     }