From f81d0567a52e53e360a6f6120a0b038bde77c551 Mon Sep 17 00:00:00 2001 From: Damon Timm Date: Sat, 13 Feb 2010 12:16:38 -0500 Subject: [PATCH] more customization to help with the sed file --- dt-s3-backup.sh | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh index bfb82ad..d79ebc8 100644 --- a/dt-s3-backup.sh +++ b/dt-s3-backup.sh @@ -20,8 +20,8 @@ # AUTHORS: -# Damon Timm Mario -# Santagiuliana +# Damon Timm +# Mario Santagiuliana # VERSION 4 NOTE (02/12/2010): @@ -59,7 +59,7 @@ # MORE INFORMATION: # -# http://usertimm.com/code/dt-s3-backup +# http://damontimm.com/code/dt-s3-backup # ---------------------------------------------------------------------------- # @@ -87,7 +87,7 @@ ROOT="/home/" # NOTE: You do need to keep the "s3+http:///" format; # even though duplicity supports "s3:///" this script # needs to read the former. -DEST="file:///home/user/new-backup-test/" +DEST="file:///home/foobar_user_name/new-backup-test/" #DEST="s3+http://backup-bucket/backup-folder/" # RESTORE FOLDER @@ -95,7 +95,7 @@ DEST="file:///home/user/new-backup-test/" # setup to easily be able to restore a backup by adding the # "--restore" flag. Indicate where you want the fili to restore to # here so you're ready to go. -RESTORE="/home/user/restore-backup-01" +RESTORE="/home/foobar_user_name/restore-backup-01" # INCLUDE LIST OF DIRECTORIES # Here is a list of directories to include; if you want to include @@ -106,7 +106,7 @@ RESTORE="/home/user/restore-backup-01" # "/home/www/mysql-backups" \ # ) -INCLIST=( "/home/user/Documents/Prose/" ) # small dir for testing +INCLIST=( "/home/foobar_user_name/Documents/Prose/" ) # small dir for testing # EXCLUDE LIST OF DIRECTORIES # Even though I am being specific about what I want to include, @@ -148,11 +148,22 @@ CLEAN_UP_VARIABLE="2" # just makes it easier for me to read them and delete them as needed. # LOGDIR="/dev/null" -LOGDIR="/home/user/logs/test2/" +LOGDIR="/home/foobar_user_name/logs/test2/" LOG_FILE="duplicity-`date +%Y-%m-%d-%M`.txt" -LOG_FILE_OWNER="user:user" +LOG_FILE_OWNER="foobar_user_name:foobar_user_name" VERBOSITY="-v3" +# END OF USER EDITS + + + + + + + + + + ############################################################## # Script Happens Below This Line - Shouldn't Require Editing # @@ -372,7 +383,7 @@ elif [ "$1" = "--restore-to-dir" ]; then OPTION="restore" if [[ ! "$2" ]]; then - echo "Please provide a path destination (eg. /home/users/savehere):" + echo "Please provide a path destination (eg. /home/user/restore-dir):" read -e NEWDESTINATION DEST=$NEWDESTINATION echo ">> You will restore to ${DEST} from ${ROOT}."