From 83b7ecdbe037caaf3d8e3685821d43a169f0755f Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Fri, 5 Dec 2014 09:30:05 +1100 Subject: [PATCH] doing a collection status and file list need to eval the command (like all the other commands already do) because if you have ssh options set in your config, it causes an error ("duplicity: error: no such option: -o") --- duplicity-backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 192a2e5..5444fb4 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -702,6 +702,7 @@ case "$COMMAND" in STATIC_OPTIONS="$STATIC_OPTIONS --time $TIME" fi + eval \ ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \ $ENCRYPT \ ${DEST} | tee -a ${LOGFILE} @@ -710,6 +711,8 @@ case "$COMMAND" in "collection-status") OPTION="collection-status" + + eval \ ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \ $ENCRYPT \ ${DEST} | tee -a ${LOGFILE}