]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/PBSClient.pm
PBSClient: add file_restore_list command
[pve-common.git] / 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;