diff --git a/CHANGELOG b/CHANGELOG index 3700a2b..dd1fbe5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/README b/README index faf6e7b..3e70f15 100644 --- a/README +++ b/README @@ -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 diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh index dec6de5..b1f56ad 100755 --- a/dt-s3-backup.sh +++ b/dt-s3-backup.sh @@ -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 @@ -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