4ceec2cbf7e1c9bb348164597135c6c31984c3cb
- Author
- Zertrin <zertrin@gmail.com>
- Committer
- Zertrin <zertrin@gmail.com>
- Date
Message
Fix issue #30 "-s (collection-status) option not writing anything to log file"
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index ebd7f5db9bdb72989e8e74130bb09017b4baefd9..70749110cd25a660a342c6fec5d54ac2e8546360 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -590,7 +590,7 @@ case "$COMMAND" in
6
7 ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
8 $ENCRYPT \
9- ${DEST}
10+ ${DEST} | tee -a ${LOGFILE}
11 echo -e "-------- END --------\n" >> ${LOGFILE}
12 ;;
13
14@@ -598,7 +598,7 @@ case "$COMMAND" in
15 OPTION="collection-status"
16 ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
17 $ENCRYPT \
18- ${DEST}
19+ ${DEST} | tee -a ${LOGFILE}
20 echo -e "-------- END --------\n" >> ${LOGFILE}
21 ;;
22