Added exclude parameter to borg create command

This commit is contained in:
Asif Bacchus 2018-09-05 17:24:51 -06:00
parent 94399a5b84
commit d66a8b859b

View File

@ -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