mirror of
https://github.com/Steffo99/backup-duplicity.git
synced 2024-12-22 11:34:22 +00:00
Quote variables
This commit is contained in:
parent
7d2fe5b4be
commit
d2dbadf7d5
1 changed files with 4 additions and 4 deletions
|
@ -5,23 +5,23 @@ set -e
|
||||||
# Get secrets from files
|
# Get secrets from files
|
||||||
# Insecure, but there's not much I can do about it
|
# Insecure, but there's not much I can do about it
|
||||||
# It's duplicity's fault!
|
# It's duplicity's fault!
|
||||||
export PASSPHRASE=$(cat ${DUPLICITY_PASSPHRASE_FILE})
|
export PASSPHRASE=$(cat "${DUPLICITY_PASSPHRASE_FILE}")
|
||||||
|
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
backup)
|
backup)
|
||||||
echo "Launched in backup mode, performing backup..." >> /dev/stderr
|
echo "Launched in backup mode, performing backup..." >> /dev/stderr
|
||||||
duplicity \
|
duplicity \
|
||||||
--allow-source-mismatch \
|
--allow-source-mismatch \
|
||||||
--full-if-older-than ${DUPLICITY_FULL_IF_OLDER_THAN} \
|
--full-if-older-than "${DUPLICITY_FULL_IF_OLDER_THAN}" \
|
||||||
/mnt \
|
/mnt \
|
||||||
${DUPLICITY_TARGET_URL}
|
"${DUPLICITY_TARGET_URL}"
|
||||||
;;
|
;;
|
||||||
restore)
|
restore)
|
||||||
echo "Launched in restore mode, restoring backup..." >> /dev/stderr
|
echo "Launched in restore mode, restoring backup..." >> /dev/stderr
|
||||||
duplicity \
|
duplicity \
|
||||||
--force \
|
--force \
|
||||||
--allow-source-mismatch \
|
--allow-source-mismatch \
|
||||||
${DUPLICITY_TARGET_URL} \
|
"${DUPLICITY_TARGET_URL}" \
|
||||||
/mnt
|
/mnt
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue