[pve-devel] [PATCH common 03/10] PBSClient: add file_restore_list command

Stefan Reiter s.reiter at proxmox.com
Wed Apr 21 13:15:32 CEST 2021


Signed-off-by: Stefan Reiter <s.reiter at 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





More information about the pve-devel mailing list