[pve-devel] [PATCH v2 common 05/13] PBSClient: add file_restore_list command

Stefan Reiter s.reiter at proxmox.com
Thu Apr 22 17:34:49 CEST 2021


Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---

v2:
* one line per param

 src/PVE/PBSClient.pm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm
index 16f7765..8e4deca 100644
--- a/src/PVE/PBSClient.pm
+++ b/src/PVE/PBSClient.pm
@@ -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;
-- 
2.20.1






More information about the pve-devel mailing list