From 1cce121bb40e6300e093c3e2c9d8b25d91ab728c Mon Sep 17 00:00:00 2001 From: Nace Oroz Date: Fri, 12 Aug 2011 01:44:53 +0200 Subject: [PATCH] added support for collection-status function --- dt-s3-backup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh index cb8df0b..63133ee 100755 --- a/dt-s3-backup.sh +++ b/dt-s3-backup.sh @@ -413,6 +413,14 @@ elif [ "$1" = "--list-current-files" ]; then ${DEST} echo -e "-------- END --------\n" >> ${LOGFILE} +elif [ "$1" = "--collection-status" ]; then + check_variables + OPTION="collection-status" + ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \ + $ENCRYPT \ + ${DEST} + echo -e "-------- END --------\n" >> ${LOGFILE} + elif [ "$1" = "--backup" ]; then check_variables include_exclude @@ -433,6 +441,7 @@ else --restore [path]: restores the entire backup --restore-file [file] [destination/filename]: restore a specific file --list-current-files: lists the files currently backed up in the archive + --collection-status: show all the backup sets in the archive --backup-script: automatically backup the script and secret key to the current working directory