Skip to content

Commit

Permalink
Add --list-current-files option
Browse files Browse the repository at this point in the history
  • Loading branch information
marionline committed Feb 19, 2010
1 parent 28c8bed commit 50a833f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version Four (marionline)
* Add --list-current-files to view in the standart-output files stored in my archive

Version Four (0.4)

* Moved the source code to github
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ TO DO:
* Add a README file to the "--backup-this-script" option because, if you are like me, when it is working for so long I forget what to do when it comes time to restore
* Clean up general formatting of the script and make it pretty
* give demo on how to use an "--archive-dir" option
* test --restore-file (specific) option
* test --restore-file (specific) option <--- marionline --- seem to work fine for me
12 changes: 11 additions & 1 deletion dt-s3-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,15 @@ elif [ "$1" = "--restore-file" ]; then
DEST=$FILE_TO_RESTORE
duplicity_backup

elif [ "$1" = "--list-current-files" ]; then
check_variables
OPTION="list-current-files"
${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
--encrypt-key=${GPG_KEY} \
--sign-key=${GPG_KEY} \
${DEST}
echo -e "-------- END --------\n" >> ${LOGFILE}

elif [ "$1" = "--backup" ]; then
check_variables
include_exclude
Expand All @@ -413,7 +422,8 @@ else
--verify: verifies the backup (no cleanup is run)
--restore [path]: restores the backup to specified path
--restore-file [file]: restore a specific file
--restore-file [file]: restore a specific files
--list-current-files: lists the files currently backed up in the archive.
--backup-script: let's you backup the script and secret key to the current working directory
Expand Down

0 comments on commit 50a833f

Please sign in to comment.