Signed-off-by: Stefan Reiter <s.rei...@proxmox.com>
---
 src/PVE/PBSClient.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm
index 857cff0..c3bfab7 100644
--- a/src/PVE/PBSClient.pm
+++ b/src/PVE/PBSClient.pm
@@ -335,4 +335,13 @@ 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;
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to