From e1c13f06a7c9953a55be4c4850530f94b8a3c754 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 4 Sep 2018 22:20:52 -0600 Subject: [PATCH] Log script completion --- root/scripts/borgbackup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index b4cf80b..a7b746a 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -304,6 +304,10 @@ else echo -e "\e[0;36m...done\e[0m" >> $logFile fi +## Log completion of script +echo -e "\e[1;32m[`date +%Y-%m-%d` `date +%H:%M:%S`]" \ + "--Backup operations completed--\e[0m" >> $logFile + # Gracefully exit exit 0 \ No newline at end of file