#!/bin/sh
#
# Toto je zálohovanie serverov BP Svit zo servera sles15-kvm na stary server sles15a-kvm
#
vm-shutdown.sh
sleep 60
#
dd if=/dev/servery/oes18-dmz-disk1 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes18-dmz-disk1)
dd if=/dev/servery/oes18-dmz-disk1 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes18-dmz-disk1)
virsh start oes18-dmz
#
dd if=/dev/servery/oes23-gw-disk1 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-gw-disk1)
dd if=/dev/servery/oes23-gw-disk2 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-gw-disk2)
virsh start oes23-gw
#
dd if=/dev/servery/oes23-lan-disk1 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-lan-disk1)
dd if=/dev/servery/oes23-lan-disk2 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-lan-disk2)
dd if=/dev/servery/oes23-lan-disk3 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-lan-disk3)
virsh start oes23-lan
#
dd if=/dev/servery/oes23-ucto-disk1 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-ucto-disk1)
dd if=/dev/servery/oes23-ucto-disk2 bs=4M status=progress | (ssh root@192.168.240.254 dd of=/dev/seservery/oes23-ucto-disk2)
virsh start oes23-ucto
#
dd if=/install/cdrom/Filr.x86_64.2022-09-15.63.qcow2 bs=4M status=progress | gzip -c | (ssh root@192.168.240.254 dd of=/zaloha/Filr.x86_64.2022-09-15.63.gz)
dd if=/dev/servery/sles15-filr-disk1 bs=4M status=progress | gzip -c | (ssh root@192.168.240.254 dd of=/zaloha/sles15-filr-disk1.gz)
dd if=/dev/servery/sles15-filr-disk2 bs=4M status=progress | gzip -c | (ssh root@192.168.240.254 dd of=/zaloha/sles15-filr-disk2.gz)
virsh start sles15-filr
#
