Résolution bug mv backup

This commit is contained in:
admin666 2022-08-05 15:00:42 +02:00
parent 78a5b0f5f2
commit 496e52e97c
4 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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