PBSClient: add file_restore_list command

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2021-04-22 17:34:49 +02:00 committed by Thomas Lamprecht
parent 9f727e5536
commit 67252649d9

View File

@ -335,4 +335,15 @@ sub status {
return ($total, $free, $used, $active);
};
sub file_restore_list {
my ($self, $snapshot, $filepath, $base64) = @_;
return run_client_cmd(
$self,
"list",
[ $snapshot, $filepath, "--base64", $base64 ? 1 : 0 ],
0,
"proxmox-file-restore",
);
}
1;