[pve-devel] [PATCH common 03/10] PBSClient: add file_restore_list command
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Apr 21 15:19:06 CEST 2021
On April 21, 2021 1:15 pm, Stefan Reiter wrote:
> 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"
> + );
nit: one parameter per line?
> +}
> +
> 1;
> --
> 2.20.1
>
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
>
More information about the pve-devel
mailing list