################################################################################
BackupVMDiscs() {
+ local readonly Disks=$(ssh $remoteLogin virsh domblklist $VM --details \
+ | grep disk \
+ | awk '{print $4}')
local readonly logFile="$backRemotePCPath/backup-$(echo $Disk \
| sed 's/\//-/g').log"
printfStripLine
printf "Rechner %s; %s ist online\n" "$remoterechner" "$VM"
printf "Fahre %s herunter\n\n" "$VM"
-
ssh $remoteLogin virsh shutdown $VM | WaitVMShutdown
- Disks=$(ssh $remoteLogin virsh domblklist $VM --details \
- | grep disk \
- | awk '{print $4}')
BackupVMDiscs
-
printf "\nFahre %s hoch\n" "$VM"
ssh $remoteLogin virsh start $VM
printfStripLine
for VM in $offlineVM; do
printfStripLine
printf "Rechner %s; %s ist offline\n\n" "$remoterechner" "$VM"
-
- Disks=$(ssh $remoteLogin virsh domblklist $VM --details \
- | grep disk \
- | awk '{print $4}')
BackupVMDiscs
printfStripLine
done