From a2b462c202fd950a2bfb98cfa3e0e4ff1df759d7 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 18 Oct 2018 00:26:50 -0600 Subject: [PATCH] Added info tags for borg processes --- root/NCscripts/backup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/NCscripts/backup.sh b/root/NCscripts/backup.sh index 05f6405..4969b2a 100755 --- a/root/NCscripts/backup.sh +++ b/root/NCscripts/backup.sh @@ -694,16 +694,16 @@ export TMPDIR="${BORG_BASE_DIR}/tmp" # commandline depends on whether borgExclude is empty or not if [ -z "$borgExclude" ]; then # borgExclude is empty - echo -e "${bold}${op}${stamp} Executing borg without exclusions${normal}" \ - >> "$logFile" + echo -e "${info}${stamp} --[INFO] Executing borg without exclusions --" \ + "${normal}" >> "$logFile" borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \ ${xtraFiles[@]} \ ${sqlDumpDir} ${ncDataDir} \ 2>> "$logFile" else # borgExclude is not empty - echo -e "${bold}${op}${stamp} Executing borg with exclusions${normal}" \ - >> "$logFile" + echo -e "${info}${stamp} --[INFO] Executing borg with exclusions --" \ + "${normal}" >> "$logFile" borg --show-rc create ${borgCreateParams} --exclude-from ${borgExclude} \ ::`date +%Y-%m-%d_%H%M%S` \ ${xtraFiles[@]} \ @@ -730,8 +730,8 @@ fi # command depends on whether or not parameters have been defined if [ -n "$borgPrune" ]; then # parameters defined - echo -e "${bold}${op}${stamp} Executing borg prune operation${normal}" \ - >> "$logFile" + echo -e "${info}${stamp} --[INFO] Executing borg prune operation --" \ + "${normal}" >> "$logFile" borg prune --show-rc -v ${borgPruneParams} ${borgPrune} \ 2>> "$logFile" # check return-status