extract backup config: delegate to backup provider for storages that support it
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Tested-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Reviewed-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Link: https://lore.proxmox.com/20250404133204.239783-8-f.ebner@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
e2dc01ac9f
commit
afc58d4d95
@ -1759,6 +1759,17 @@ sub extract_vzdump_config {
|
|||||||
storage_check_enabled($cfg, $storeid);
|
storage_check_enabled($cfg, $storeid);
|
||||||
return PVE::Storage::PBSPlugin->extract_vzdump_config($scfg, $volname, $storeid);
|
return PVE::Storage::PBSPlugin->extract_vzdump_config($scfg, $volname, $storeid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (storage_has_feature($cfg, $storeid, 'backup-provider')) {
|
||||||
|
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||||
|
my $log_function = sub {
|
||||||
|
my ($log_level, $message) = @_;
|
||||||
|
my $prefix = $log_level eq 'err' ? 'ERROR' : uc($log_level);
|
||||||
|
print "$prefix: $message\n";
|
||||||
|
};
|
||||||
|
my $backup_provider = $plugin->new_backup_provider($scfg, $storeid, $log_function);
|
||||||
|
return $backup_provider->archive_get_guest_config($volname, $storeid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $archive = abs_filesystem_path($cfg, $volid);
|
my $archive = abs_filesystem_path($cfg, $volid);
|
||||||
|
|||||||
Reference in New Issue
Block a user