Reset disks list

So it dumps the correct disks when you backup several VM in one run
Patch by Diego Rondini <diego.rondini@kynetics.it>
tags/virt-backup-0.2.12-1 0.2.10_el5
Daniel Berteaud 9 years ago
parent c596ec15db
commit 9eb10f07d0
  1. 3
      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();

Loading…
Cancel
Save