Edited comments and README; whitespace cleanup.
This commit is contained in:
parent
bb3c55b8f8
commit
3a307e371b
3 changed files with 71 additions and 52 deletions
1
AUTHORS
1
AUTHORS
|
|
@ -1,2 +1,3 @@
|
|||
Damon Timm <damontimm@gmail.com> <http://blog.damontimm.com>
|
||||
Mario Santagiuliana <mario@marionline.it> <http://www.marionline.it>
|
||||
Razvan <http://github.com/rmarescu>
|
||||
|
|
|
|||
21
README
21
README
|
|
@ -11,8 +11,8 @@ 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.
|
||||
|
||||
Optionally, you can set up an email address where the log file will be sent.
|
||||
Useful when the script is used via cron.
|
||||
Optionally, you can set up an email address where the log file will be sent,
|
||||
which is useful when the script is used via cron.
|
||||
|
||||
More information about this script avaiable at:
|
||||
http://damontimm.com/code/dt-s3-backup
|
||||
|
|
@ -80,6 +80,21 @@ COMMON USAGE EXAMPLES
|
|||
* Backup the script and gpg key (for safekeeping)
|
||||
$ dt-s3-backup.sh --backup-script
|
||||
|
||||
TROUBLESHOOTING
|
||||
===============
|
||||
|
||||
This script attempts to simplify the task of running a duplicity command; if you
|
||||
are having any problems with the script the first step is to determine if the
|
||||
script is generating an incorrect command or if duplicity itself is
|
||||
causing your error.
|
||||
|
||||
To see exactly what is happening when you run dt-s3-backup, head to the bottom
|
||||
of the user configuration portion of the script and uncomment the `ECHO=$(which
|
||||
echo)` variable. This will stop the script from running and will, instead,
|
||||
output the generated command into your log file. You can then check to see if
|
||||
what is being generated is causing an error or if it is duplicity causing you
|
||||
woe.
|
||||
|
||||
NEXT VERSION WISH LIST
|
||||
======================
|
||||
|
||||
|
|
@ -87,4 +102,4 @@ NEXT VERSION WISH LIST
|
|||
* restore files from a specific time period
|
||||
* support multiple MTAs for the email alert feature
|
||||
|
||||
Thanks to Mario Santagiuliana for his help.
|
||||
Thanks to Mario Santagiuliana and Razvan for their help.
|
||||
|
|
|
|||
|
|
@ -52,21 +52,24 @@ DEST="file:///home/foobar_user_name/new-backup-test/"
|
|||
# INCLUDE LIST OF DIRECTORIES
|
||||
# Here is a list of directories to include; if you want to include
|
||||
# everything that is in root, you could leave this list empty (I think).
|
||||
#INCLIST=( "/home/*/Documents" \
|
||||
# "/home/*/Projects" \
|
||||
# "/home/*/logs" \
|
||||
# "/home/www/mysql-backups" \
|
||||
#
|
||||
# Here is an example with multiple locations:
|
||||
#INCLIST=( "/home/*/Documents" \
|
||||
# "/home/*/Projects" \
|
||||
# "/home/*/logs" \
|
||||
# "/home/www/mysql-backups" \
|
||||
# )
|
||||
|
||||
INCLIST=( "/home/foobar_user_name/Documents/Prose/" ) # small dir for testing
|
||||
#
|
||||
# Simpler example with one location:
|
||||
INCLIST=( "/home/foobar_user_name/Documents/Prose/" )
|
||||
|
||||
# EXCLUDE LIST OF DIRECTORIES
|
||||
# Even though I am being specific about what I want to include,
|
||||
# there is still a lot of stuff I don't need.
|
||||
EXCLIST=( "/home/*/Trash" \
|
||||
"/home/*/Projects/Completed" \
|
||||
"/**.DS_Store" "/**Icon?" "/**.AppleDouble" \
|
||||
)
|
||||
EXCLIST=( "/home/*/Trash" \
|
||||
"/home/*/Projects/Completed" \
|
||||
"/**.DS_Store" "/**Icon?" "/**.AppleDouble" \
|
||||
)
|
||||
|
||||
# STATIC BACKUP OPTIONS
|
||||
# Here you can define the static backup options that you want to run with
|
||||
|
|
@ -100,7 +103,7 @@ LOG_FILE="duplicity-`date +%Y-%m-%d_%H-%M`.txt"
|
|||
LOG_FILE_OWNER="foobar_user_name:foobar_user_name"
|
||||
VERBOSITY="-v3"
|
||||
|
||||
# EMAIL ALERT
|
||||
# EMAIL ALERT (*thanks: rmarescu*)
|
||||
# Provide an email address to receive the logfile by email. If no email
|
||||
# address is provided, no alert will be sent.
|
||||
# You can set a custom from email address and a custom subject (both optionally)
|
||||
|
|
|
|||
Loading…
Reference in a new issue