infra-generale/migrate_to_mother_p2p.sh

10 lines
263 B
Bash
Raw Normal View History

2022-05-21 00:18:32 +02:00
#!/bin/bash
vm=$1
2022-05-20 22:13:38 +02:00
2022-05-21 00:18:32 +02:00
echo MIGRATING $vm ...
virsh migrate --p2p $vm --live --verbose --undefinesource --persistent --copy-storage-all --abort-on-error qemu+ssh://mother.onlink/system
2022-05-20 22:13:38 +02:00
2022-08-05 15:03:27 +02:00
if [ $? == 0]; then
sudo mv /var/backups/vm/aunt/* /var/backups/vm/mother
fi