Add --list-current-files option
This commit is contained in:
parent
28c8bedfab
commit
50a833fe54
3 changed files with 15 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
README
2
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue