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>