From ddf7fdaa823dd422730cf79d81e9937b4af48897 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Thu, 4 Jun 2020 11:08:33 +0200 Subject: [PATCH] PBSPlugin: list_volumes: filter by vmid if specified Signed-off-by: Fabian Ebner --- PVE/Storage/PBSPlugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 3c0879c..65696f4 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -291,6 +291,7 @@ sub list_volumes { next if !($btype eq 'vm' || $btype eq 'ct'); next if $bid !~ m/^\d+$/; + next if defined($vmid) && $bid ne $vmid; my $btime = strftime("%FT%TZ", gmtime($epoch)); my $volname = "backup/${btype}/${bid}/${btime}";