]> git.proxmox.com Git - pve-storage.git/commit
pbs: prune: avoid getting all snapshots for group assembly if fixed anyway
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 14:55:37 +0000 (15:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 14:55:40 +0000 (15:55 +0100)
commit0bcfafa471d8fd91f3bca9ce82bdb52a0e0f16eb
tree8b28b6e20c8a3edeaf174323dc02ad1381f2e17d
parente6d77281713f8ccd140b53e8ece5ed2dec0b6a6c
pbs: prune: avoid getting all snapshots for group assembly if fixed anyway

If both type and vmid is defined we don't need to list the current
snapshots, we simply can derive the single backup group from that and
let the PBS client handle the rest.

Should be a not so small speedup for most setups using PBS backup and
pruning configured on PVE side, as vzdump calls this separately for
every vmid on backup jobs with multiple guests included.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/PBSPlugin.pm