From d66a8b859b98e6a4d0c8ac603b4b649cc1dcff2c Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 5 Sep 2018 17:24:51 -0600 Subject: [PATCH] Added exclude parameter to borg create command --- root/scripts/borgbackup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 978201b..a9d6a1d 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -232,7 +232,8 @@ export BORG_PASSPHRASE="$(tail -1 $borgDetails)" mapfile -t xtraFiles < $borgXtraFiles ## Call BorgBackup -borg --show-rc create --list ::`date +%Y-%m-%d_%H%M%S` \ +borg --show-rc create --list --exclude-from $borgExcludeFiles \ + ::`date +%Y-%m-%d_%H%M%S` \ "${xtraFiles[@]}" \ "$ncdata" \ "$sqlDumpDir/$sqlDumpFile" 2>> $logFile