Résolution bug mv backup
This commit is contained in:
parent
78a5b0f5f2
commit
496e52e97c
|
@ -12,5 +12,8 @@ do
|
|||
|
||||
echo MIGRATING $vm ...
|
||||
sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.3:223/system
|
||||
sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt
|
||||
if [ $? != 0 ]; then
|
||||
sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt
|
||||
fi
|
||||
|
||||
done
|
||||
|
|
|
@ -12,5 +12,7 @@ do
|
|||
|
||||
echo MIGRATING $vm ...
|
||||
sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.2:222/system
|
||||
sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother
|
||||
if [ $? != 0 ]; then
|
||||
sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -10,4 +10,7 @@ fi
|
|||
|
||||
echo MIGRATING $vm ...
|
||||
sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.3:223/system
|
||||
sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt
|
||||
if [ $? != 0 ]; then
|
||||
sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt
|
||||
fi
|
||||
|
||||
|
|
|
@ -10,4 +10,6 @@ fi
|
|||
|
||||
echo MIGRATING $vm ...
|
||||
sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.2:222/system
|
||||
sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother
|
||||
if [ $? != 0 ]; then
|
||||
sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue