From 9eb10f07d0f05e38debd274812bea163b9e00cad Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 17 Feb 2015 18:30:27 +0100 Subject: [PATCH] Reset disks list So it dumps the correct disks when you backup several VM in one run Patch by Diego Rondini --- virt-backup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-backup b/virt-backup index 219564a..100ae3e 100644 --- a/virt-backup +++ b/virt-backup @@ -287,6 +287,9 @@ sub prepare_backup{ # Stop here if the lock file is present, another dump might be running die "Another backup is running\n" if ( -e "$lockdir/$vm.lock" ); + # Reset disks list + @disks = (); + # Lock VM: Create a lock file so only one dump process can run lock_vm();