Redirected output from borg to logfile
This commit is contained in:
parent
724182a15e
commit
5e148150e6
@ -516,7 +516,8 @@ if [ -z "$borgExclude" ]; then
|
||||
>> "$logFile"
|
||||
borg --show-rc create ${borgCreateParams} :: `date +%Y-%m-%d_%H%M%S` \
|
||||
"${xtraFiles[@]}" \
|
||||
"${sqlDumpDir}" "${ncDataDir}"
|
||||
"${sqlDumpDir}" "${ncDataDir}" \
|
||||
2>> "$logFile"
|
||||
else
|
||||
# borgExclude is not empty
|
||||
echo -e "${op}${stamp} Executing borg with exclusions${normal}" \
|
||||
@ -524,7 +525,8 @@ else
|
||||
borg --show-rc create ${borgCreateParams} --exclude-from "${borgExclude}" \
|
||||
:: `date +%Y-%m-%d_%H%M%S` \
|
||||
"${xtraFiles[@]}" \
|
||||
"${sqlDumpDir}" "${ncDataDir}"
|
||||
"${sqlDumpDir}" "${ncDataDir}" \
|
||||
2>> "$logFile"
|
||||
fi
|
||||
|
||||
## Check status of borg operation
|
||||
|
Loading…
Reference in New Issue
Block a user