From 912f8c274ad02f8b244cb84b29e6adbdb67cde53 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 20 Oct 2018 05:10:11 -0600 Subject: [PATCH] Updated borg commands for MC backup --- root/scripts/backup.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index aee2c3c..3209830 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -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