read file listing extra locations to backup
This commit is contained in:
parent
4a83cdb755
commit
163bcd2a84
@ -462,6 +462,25 @@ else
|
|||||||
export BORG_PASSPHRASE="DummyPasswordSoBorgFails"
|
export BORG_PASSPHRASE="DummyPasswordSoBorgFails"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## read additional files
|
||||||
|
if [ -n "${borgXtraListPath}" ]; then
|
||||||
|
# check if file actually exists
|
||||||
|
if [ ! -f "${borgXtraListPath}" ]; then
|
||||||
|
badDetails dne 'borgXtraListPath'
|
||||||
|
fi
|
||||||
|
# read file contents into concatenated list for echo to cmdline
|
||||||
|
while read -r xtraItem; do
|
||||||
|
if [ -z "${xtraList}" ]; then
|
||||||
|
xtraList="${xtraItem}"
|
||||||
|
else
|
||||||
|
xtraList="${xtraList} ${xtraItem}"
|
||||||
|
fi
|
||||||
|
done <<EOF
|
||||||
|
$( sed -e '/^\s*#.*$/d' -e '/^\s*$/d' "${borgXtraListPath}" )
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user