quoted path-related vars to prevent issues with spaces in path
This commit is contained in:
parent
82f80d0f83
commit
3ddc2c5d4a
@ -797,21 +797,21 @@ if [ -z "$borgExclude" ]; then
|
|||||||
echo -e "${bold}${op}[$(stamp)] Executing borg without exclusions${normal}" \
|
echo -e "${bold}${op}[$(stamp)] Executing borg without exclusions${normal}" \
|
||||||
>> "$logFile"
|
>> "$logFile"
|
||||||
borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \
|
borg --show-rc create ${borgCreateParams} ::`date +%Y-%m-%d_%H%M%S` \
|
||||||
${xtraFiles[@]} \
|
"${xtraFiles[@]}" \
|
||||||
${sqlDumpDir} \
|
"${sqlDumpDir}" \
|
||||||
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
|
"${dockerVolumeMail}" "${dockerVolumeRspamd}" "${dockerVolumePostfix}" \
|
||||||
${dockerVolumeRedis} ${dockerVolumeCrypt} \
|
"${dockerVolumeRedis}" "${dockerVolumeCrypt}" \
|
||||||
2>> "$logFile"
|
2>> "$logFile"
|
||||||
else
|
else
|
||||||
# borgExclude is not empty
|
# borgExclude is not empty
|
||||||
echo -e "${bold}${op}[$(stamp)] Executing borg with exclusions${normal}" \
|
echo -e "${bold}${op}[$(stamp)] Executing borg with exclusions${normal}" \
|
||||||
>> "$logFile"
|
>> "$logFile"
|
||||||
borg --show-rc create ${borgCreateParams} --exclude-from ${borgExclude} \
|
borg --show-rc create ${borgCreateParams} --exclude-from "${borgExclude}" \
|
||||||
::`date +%Y-%m-%d_%H%M%S` \
|
::`date +%Y-%m-%d_%H%M%S` \
|
||||||
${xtraFiles[@]} \
|
"${xtraFiles[@]}" \
|
||||||
${sqlDumpDir} \
|
"${sqlDumpDir}" \
|
||||||
${dockerVolumeMail} ${dockerVolumeRspamd} ${dockerVolumePostfix} \
|
"${dockerVolumeMail}" "${dockerVolumeRspamd}" "${dockerVolumePostfix}" \
|
||||||
${dockerVolumeRedis} ${dockerVolumeCrypt} \
|
"${dockerVolumeRedis}" "${dockerVolumeCrypt}" \
|
||||||
2>> "$logFile"
|
2>> "$logFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user