Bash wrapper script for automated backups with duplicity supporting Amazon's S3 online storage as well as other storage destinations (ftp, rsync, sftp, local storage...). Migrated from GitHub https://github.com/2Shirt/duplicity-backup.sh.git
Find a file
2010-04-04 10:54:32 +02:00
.gitignore Initial commit ... 2010-02-12 18:59:31 -05:00
AUTHORS lots of changes for version 4 - ready for final testing then tag it 2010-03-05 20:10:31 -05:00
CHANGELOG Change --list-current-file to --list-files, more easy 2010-02-23 18:52:06 +01:00
dt-s3-backup.sh Add comment to log file when run script without option 2010-04-04 10:54:32 +02:00
LICENSE initial commit ... 2010-02-12 18:47:33 -05:00
README spelling error 2010-03-05 20:22:33 -05:00

ABOUT THIS SCRIPT
=================

This bash script was designed to automate and simplify the remote backup
process of duplicity on Amazon S3.  After your script is configured, you can
easily backup, restore, verify and clean (either via cron or manually) your
data without having to remember lots of different command options and
passphrases.

Most importantly, you can easily backup the script and your gpg key in a
convenient passphrase-encrypted file.  This comes in in handy if/when your
machine ever does go belly up. 

More information about this script avaiable at:
http://damontimm.com/code/dt-s3-backup

Latest version of the code is available at:
http://github.com/thornomad/dt-s3-backup

BEFORE YOU START
================

This is a bash script that requires user configuration.  Instructions are in
the file itself and should be self-explanatory.  Be sure to replace all the
*foobar* values with your real ones.  Almost every value needs to be
configured.

After the script is configured, you can move it to /usr/local/sbin/ or wherever
you please and run it from there.  A cron job is always nice.  Be sure to make
the script executable (chmod +x) before you hit the gas.

COMMON USAGE EXAMPLES
=====================

* View help:
    $ dt-s3-backup.sh

* Run an incremental backup:
	$ dt-s3-backup.sh --backup

* Restore your entire backup:
	$ dt-s3-backup.sh --restore 
    You will be prompted for a restore directory

	$ dt-s3-backup.sh --restore /home/user/restore-folder
    You can also provide a restore folder on the command line.

* Restore a specific file in the backup:
    $ dt-s3-backup.sh --restore-file
    You will be prompted for a file to restore to the current directory

    $ dt-s3-backup.sh --restore-file img/mom.jpg
    Restores the file img/mom.jpg to the current directory

    $ dt-s3-backup.sh --restore-file img/mom.jpg /home/user/i-love-mom.jpg
    Restores the file img/mom.jpg to /home/user/i-love-mom.jpg

* List files in the remote archive
	$ dt-s3-backup.sh --list-current-files

* Verify the backup
    $ dt-s3-backup.sh --verify


NEXT VERSION WISH LIST
======================

* --restore-dir option
* restore files from a specific time period 


Thanks to Mario Santagiuliana for his help.