From 51120491d55a7d56730f3822ee5b2e07db583b78 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 7 May 2020 00:08:47 -0600 Subject: [PATCH] add mc locations to borgbackup cmd --- backup/backup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backup/backup.sh b/backup/backup.sh index afe5cad..9fd2e01 100644 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -630,17 +630,30 @@ fi ### execute borg depending on whether exclusions are defined +printf "%s[%s] -- [INFO] Pre-backup tasks completed, calling borgbackup --%s\n" "$cyan" "$(stamp)" "$norm" >> "$logFile" ## construct the proper borg commandline # base command if [ "$exclusions" -eq 0 ]; then borgCMD="borg --show-rc create ${borgCreateParams} \ ::$(date +%Y-%m-%d_%H%M%S) \ + ${sqlDumpDir} \ + ${dockerVolumeMail} \ + ${dockerVolumeRspamd} \ + ${dockerVolumePostfix} \ + ${dockerVolumeRedis} \ + ${dockerVolumeCrypt} \ ${xtraList}" elif [ "$exclusions" -eq 1 ]; then borgCMD="borg --show-rc create ${borgCreateParams} \ --exclude-from ${borgExcludeListPath} \ ::$(date +%Y-%m-%d_%H%M%S) \ + ${sqlDumpDir} \ + ${dockerVolumeMail} \ + ${dockerVolumeRspamd} \ + ${dockerVolumePostfix} \ + ${dockerVolumeRedis} \ + ${dockerVolumeCrypt} \ ${xtraList}" fi