local DiskType=""
for Disk in $Disks; do
- printf "Disk ${YELLOW}%s${RESET} von ${LIGHTBLUE}%s${RESET} wird gesichert\n\n" "$Disk" "$VM"
+ printf "Disk ${YELLOW}%s${RESET} von " "$Disk"
+ printf "${LIGHTBLUE}%s${RESET} wird gesichert\n\n" "$VM"
DiskType=$(ssh $remoteLogin virsh vol-info $Disk \
| grep Type | awk '{print $2}')
for VM in $onlineVM; do
printfStripLine
- printf "Rechner ${LIGHTPURPLE}%s${RESET}; ${LIGHTBLUE}%s${RESET} ist ${LIGHTGREEN}online${RESET}\n" "$remoterechner" "$VM"
+ printf "Rechner ${LIGHTPURPLE}%s${RESET}; " "$remoterechner"
+ printf "${LIGHTBLUE}%s${RESET} ist " "$VM"
+ printf "${LIGHTGREEN}online${RESET}\n"
printf "Fahre %s herunter\n\n" "$VM"
ssh $remoteLogin virsh shutdown $VM | WaitVMShutdown
BackupVMDiscs
for VM in $offlineVM; do
printfStripLine
- printf "Rechner ${LIGHTPURPLE}%s${RESET}; ${LIGHTBLUE}%s${RESETt} ist ${LIGHTRED}offline${RESET}\n\n" "$remoterechner" "$VM"
+ printf "Rechner ${LIGHTPURPLE}%s${RESET}; " "$remoterechner"
+ printf "${LIGHTBLUE}%s${RESETt} ist " "$VM"
+ printf "${LIGHTRED}offline${RESET}\n\n"
BackupVMDiscs
printfStripLine
done
| sed 's/\//-/g').log"
printfStripLine
- printf "Rechner ${LIGHTPURPLE}%s${RESET}; Pfad ${YELLOW}%s${RESET} wird gesichert\n\n" "$remoterechner" "$pfad"
+ printf "Rechner ${LIGHTPURPLE}%s${RESET}; " "$remoterechner"
+ printf "Pfad ${YELLOW}%s${RESET} wird gesichert\n\n" "$pfad"
rsync --archive --verbose --sparse --acls --hard-links --relative \
--human-readable --log-file=$logFile --filter="- *.qcow2" \
local readonly packPath="$backRemotePCPath/packages"
printfStripLine
- printf "Rechner ${LIGHTPURPLE}%s${RESET}; ${YELLOW}Packages${RESET} wird gesichert \n\n" "$remoterechner"
+ printf "Rechner ${LIGHTPURPLE}%s${RESET}; " "$remoterechner"
+ printf "${YELLOW}Packages${RESET} wird gesichert \n\n"
mkdir --parents $packPath
dpkg --get-selections > $packPath/package.list