From d38ec9c9dd5558bc02c2982010f39372c685b360 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 4 Sep 2018 18:15:48 -0600 Subject: [PATCH] Write script start to log file --- root/scripts/borgbackup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 5d919b0..2d9341c 100644 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -92,3 +92,7 @@ if [ $EUID != 0 ]; then fi +## Write script execution start in log file +echo -e "\e[1;32m[`date +%Y-%m-%d` `date +%H:%M:%S`]" \ + "--Begin backup operations--\e[0m" >> $logFile +