Updated borg commands for MC backup
This commit is contained in:
parent
1e3ef9a302
commit
912f8c274a
@ -689,7 +689,9 @@ 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} \
|
||||||
|
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
|
||||||
|
${dockerVolumeRedis} ${dockerVolumeCrypt} \
|
||||||
2>> "$logFile"
|
2>> "$logFile"
|
||||||
else
|
else
|
||||||
# borgExclude is not empty
|
# borgExclude is not empty
|
||||||
@ -698,7 +700,9 @@ 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} \
|
||||||
|
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
|
||||||
|
${dockerVolumeRedis} ${dockerVolumeCrypt} \
|
||||||
2>> "$logFile"
|
2>> "$logFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user