set proper borg backup source paths

This commit is contained in:
Asif Bacchus 2019-07-25 00:56:49 -06:00
parent 62652f63ba
commit ccbd7541c2
2 changed files with 4 additions and 8 deletions

View File

@ -9,10 +9,10 @@
196,
268,
119,
507,
-1,
-1,
-1,
614
610
]
}
]

View File

@ -509,16 +509,12 @@ export TMPDIR="${borgBaseDir}/tmp"
if [ "$exclusions" -eq 0 ]; then
borgCMD="borg --show-rc create ${borgCreateParams} \
::$(date +%Y-%m-%d_%H%M%S) \
${seafDir} \
${seafData} \
${sqlDumpDir}"
${exportDir}"
elif [ "$exclusions" -eq 1 ]; then
borgCMD="borg --show-rc create ${borgCreateParams} \
--exclude-from ${borgExcludeListPath} \
::$(date +%Y-%m-%d_%H%M%S) \
${seafDir} \
${seafData} \
${sqlDumpDir}"
${exportDir}"
fi
# add extra locations if defined