Redirected output from borg to logfile
This commit is contained in:
parent
724182a15e
commit
5e148150e6
@ -516,7 +516,8 @@ if [ -z "$borgExclude" ]; then
|
|||||||
>> "$logFile"
|
>> "$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"
|
||||||
else
|
else
|
||||||
# borgExclude is not empty
|
# borgExclude is not empty
|
||||||
echo -e "${op}${stamp} Executing borg with exclusions${normal}" \
|
echo -e "${op}${stamp} Executing borg with exclusions${normal}" \
|
||||||
@ -524,7 +525,8 @@ else
|
|||||||
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[@]}" \
|
||||||
"${sqlDumpDir}" "${ncDataDir}"
|
"${sqlDumpDir}" "${ncDataDir}" \
|
||||||
|
2>> "$logFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Check status of borg operation
|
## Check status of borg operation
|
||||||
|
Loading…
Reference in New Issue
Block a user