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