Added info tags for borg processes

This commit is contained in:
Asif Bacchus 2018-10-18 00:26:50 -06:00
parent 646d4976fd
commit a2b462c202

View File

@ -694,16 +694,16 @@ export TMPDIR="${BORG_BASE_DIR}/tmp"
# commandline depends on whether borgExclude is empty or not # commandline depends on whether borgExclude is empty or not
if [ -z "$borgExclude" ]; then if [ -z "$borgExclude" ]; then
# borgExclude is empty # borgExclude is empty
echo -e "${bold}${op}${stamp} Executing borg without exclusions${normal}" \ echo -e "${info}${stamp} --[INFO] Executing borg without exclusions --" \
>> "$logFile" "${normal}" >> "$logFile"
borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \ borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \
${xtraFiles[@]} \ ${xtraFiles[@]} \
${sqlDumpDir} ${ncDataDir} \ ${sqlDumpDir} ${ncDataDir} \
2>> "$logFile" 2>> "$logFile"
else else
# borgExclude is not empty # borgExclude is not empty
echo -e "${bold}${op}${stamp} Executing borg with exclusions${normal}" \ echo -e "${info}${stamp} --[INFO] Executing borg with exclusions --" \
>> "$logFile" "${normal}" >> "$logFile"
borg --show-rc create ${borgCreateParams} --exclude-from ${borgExclude} \ borg --show-rc create ${borgCreateParams} --exclude-from ${borgExclude} \
::`date +%Y-%m-%d_%H%M%S` \ ::`date +%Y-%m-%d_%H%M%S` \
${xtraFiles[@]} \ ${xtraFiles[@]} \
@ -730,8 +730,8 @@ fi
# command depends on whether or not parameters have been defined # command depends on whether or not parameters have been defined
if [ -n "$borgPrune" ]; then if [ -n "$borgPrune" ]; then
# parameters defined # parameters defined
echo -e "${bold}${op}${stamp} Executing borg prune operation${normal}" \ echo -e "${info}${stamp} --[INFO] Executing borg prune operation --" \
>> "$logFile" "${normal}" >> "$logFile"
borg prune --show-rc -v ${borgPruneParams} ${borgPrune} \ borg prune --show-rc -v ${borgPruneParams} ${borgPrune} \
2>> "$logFile" 2>> "$logFile"
# check return-status # check return-status