]> git.proxmox.com Git - pve-common.git/commitdiff
PBSClient: add file_restore_list command
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 22 Apr 2021 15:34:49 +0000 (17:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 16:17:35 +0000 (18:17 +0200)
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/PVE/PBSClient.pm

index 16f77656f9b8cda4b6aff81740be7ecce7f2ea3a..8e4decaeb243bf687f96ebcf5691561b31057439 100644 (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;