From fd1f9187df8206dcc94e96194100cefce9d548b4 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 22 Jul 2018 14:19:17 +0200 Subject: [PATCH] change: break long lines 80 char limit --- backup | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/backup b/backup index 526bdaf..3622eb9 100755 --- a/backup +++ b/backup @@ -97,7 +97,8 @@ BackupVMDiscs() 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}') @@ -120,7 +121,9 @@ BackupOnlineVMs() 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 @@ -138,7 +141,9 @@ BackupOfflineVMs() 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 @@ -158,7 +163,8 @@ BackupDirectoryPath() | 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" \ @@ -172,7 +178,8 @@ BackupPackages() 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 -- 2.39.5