Updated borg commands for MC backup

This commit is contained in:
Asif Bacchus 2018-10-20 05:10:11 -06:00
parent 1e3ef9a302
commit 912f8c274a
1 changed files with 6 additions and 2 deletions

View File

@ -689,7 +689,9 @@ if [ -z "$borgExclude" ]; then
>> "$logFile"
borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \
${xtraFiles[@]} \
${sqlDumpDir} ${ncDataDir} \
${sqlDumpDir} \
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
${dockerVolumeRedis} ${dockerVolumeCrypt} \
2>> "$logFile"
else
# borgExclude is not empty
@ -698,7 +700,9 @@ else
borg --show-rc create ${borgCreateParams} --exclude-from ${borgExclude} \
::`date +%Y-%m-%d_%H%M%S` \
${xtraFiles[@]} \
${sqlDumpDir} ${ncDataDir} \
${sqlDumpDir} \
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
${dockerVolumeRedis} ${dockerVolumeCrypt} \
2>> "$logFile"
fi