]> git.proxmox.com Git - pmg-api.git/commitdiff
api: pbs/get backup restore: adapt to abi changes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Nov 2020 13:46:18 +0000 (14:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Nov 2020 16:44:55 +0000 (17:44 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/API2/PBS/Job.pm

index 26a1639daec08b3ff59c5919f0146b534a50ad2f..4f0810343c6e2e8813a6b170bd2e4ce80270aefe 100644 (file)
@@ -326,18 +326,12 @@ __PACKAGE__->register_method ({
        die "nothing selected - please select what you want to restore (config or database?)\n"
            if !($param->{database} || $param->{config});
 
-       my $pbs_opts = {
-           pxarname => 'pmgbackup',
-           target => $dirname,
-           snapshot => $snapshot,
-       };
-
        my $worker = sub {
            my $upid = shift;
 
            print "starting restore of $snapshot from $remote\n";
 
-           $pbs->restore_pxar($pbs_opts);
+           $pbs->restore_pxar($snapshot, 'pmgbackup', $dirname);
            print "starting restore of PMG config\n";
            PMG::Backup::pmg_restore($dirname, $param->{database},
                 $param->{config}, $param->{statistic});