]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: allow backups from plugins
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 19 Jul 2021 13:07:54 +0000 (15:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Jul 2021 15:08:58 +0000 (17:08 +0200)
remove type check for the specific plugins, instead we can deduce it
from the supported content type in config (this can only be set on
storages that declare to support backups). should also work with
external storage plugins.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
PVE/VZDump.pm

index 46cb9e6dc7ee2889f95cdface2019e995c4be476..b671ab196523b644f4edda0ff35ffff35d895ec7 100644 (file)
@@ -100,9 +100,6 @@ sub storage_info {
     my $scfg = PVE::Storage::storage_config($cfg, $storage);
     my $type = $scfg->{type};
 
-    die "can't use storage type '$type' for backup\n"
-       if (!($type eq 'dir' || $type eq 'nfs' || $type eq 'glusterfs'
-             || $type eq 'cifs' || $type eq 'cephfs' || $type eq 'pbs'));
     die "can't use storage '$storage' for backups - wrong content type\n"
        if (!$scfg->{content}->{backup});