]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
plugin: subdir files: backup: don't match for vmid against the full path
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 7 Apr 2021 10:25:36 +0000 (12:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 10:41:10 +0000 (12:41 +0200)
commitedb92f707a2f966fbcccbf364fdcb3dd50d8c64c
treefdf9ae854874b7a0dc873aec71cfd017fb0ed757
parentc241c2159d0835f43fb20115c2a3a4b81059eba3
plugin: subdir files: backup: don't match for vmid against the full path

Only match against the file name to avoid false positives with
directory names containing "-$vmid-".

Found while trying to debug/reproduce a forum thread[0], but the path
there should not be affected by this...

[0]: https://forum.proxmox.com/threads/vzdump-removing-too-many-backups.87072/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/Plugin.pm