1cce121bb40e6300e093c3e2c9d8b25d91ab728c
- Author
- Nace Oroz <nace.oroz@gmail.com>
- Committer
- Nace Oroz <nace.oroz@gmail.com>
- Date
Message
added support for collection-status function
Diff
1diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh
2index cb8df0b2c8dea4a14435429ba6d034e8f1a67f2e..63133ee6b504ee8e2c269660ec1911ae31bbcb94 100755
3--- a/dt-s3-backup.sh
4+++ b/dt-s3-backup.sh
5@@ -413,6 +413,14 @@ elif [ "$1" = "--list-current-files" ]; then
6 ${DEST}
7 echo -e "-------- END --------\n" >> ${LOGFILE}
8
9+elif [ "$1" = "--collection-status" ]; then
10+ check_variables
11+ OPTION="collection-status"
12+ ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
13+ $ENCRYPT \
14+ ${DEST}
15+ echo -e "-------- END --------\n" >> ${LOGFILE}
16+
17 elif [ "$1" = "--backup" ]; then
18 check_variables
19 include_exclude
20@@ -433,6 +441,7 @@ else
21 --restore [path]: restores the entire backup
22 --restore-file [file] [destination/filename]: restore a specific file
23 --list-current-files: lists the files currently backed up in the archive
24+ --collection-status: show all the backup sets in the archive
25
26 --backup-script: automatically backup the script and secret key to the current working directory
27