From 03f8c39584e7445f31c7de19efafac94bc065f50 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 31 Dec 2017 12:23:41 +0100 Subject: [PATCH] add: savelog --- backup-einfach | 3 ++- restore | 2 ++ restore-einfach | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backup-einfach b/backup-einfach index 2e36d45..370b8ae 100755 --- a/backup-einfach +++ b/backup-einfach @@ -28,7 +28,8 @@ BackupPathes() { printf " wird gesichert\n\n" logFile="$backRemotePCPath/backup-$(echo $pfad \ - | sed 's/\//-/g').log" + | sed 's/\//-/g').log" + savelog -nJ9 -c 20 $logFile rsync --archive --verbose --sparse --acls --hard-links \ --relative --human-readable --delete \ diff --git a/restore b/restore index 3d550f0..f755ccd 100755 --- a/restore +++ b/restore @@ -45,6 +45,8 @@ RestoreData() { printf "von der Sicherung vom %s\n" $datum printfStripLine + savelog -nJ9 $backpath/restore-*.log + rsync --archive --verbose --sparse --acls --hard-links \ --human-readable \ --log-file $backpath/restore-$(date +%Y-%m-%d).log \ diff --git a/restore-einfach b/restore-einfach index 53029cf..a2985ac 100755 --- a/restore-einfach +++ b/restore-einfach @@ -40,6 +40,8 @@ RestoreData() { printf "Rechner: %s\n" $rechner printfStripLine + savelog -nJ9 $backpath/restore-*.log + rsync --archive --verbose --sparse --acls --hard-links \ --human-readable \ --log-file $backpath/restore-einfach-$(date +%Y-%m-%d).log \ -- 2.39.5