more customization to help with the sed file

This commit is contained in:
Damon Timm 2010-02-13 12:16:38 -05:00
parent 9b54f65837
commit f81d0567a5

View file

@ -20,8 +20,8 @@
# AUTHORS: # AUTHORS:
# Damon Timm <usertimm@gmail.com> <http://blog.usertimm.com> Mario # Damon Timm <damontimm@gmail.com> <http://blog.damontimm.com>
# Santagiuliana <mario@marionline.it> <http://www.marionline.it> # Mario Santagiuliana <mario@marionline.it> <http://www.marionline.it>
# VERSION 4 NOTE (02/12/2010): # VERSION 4 NOTE (02/12/2010):
@ -59,7 +59,7 @@
# MORE INFORMATION: # 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://<your location>/" format; # NOTE: You do need to keep the "s3+http://<your location>/" format;
# even though duplicity supports "s3://<your location>/" this script # even though duplicity supports "s3://<your location>/" this script
# needs to read the former. # 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/" #DEST="s3+http://backup-bucket/backup-folder/"
# RESTORE 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 # setup to easily be able to restore a backup by adding the
# "--restore" flag. Indicate where you want the fili to restore to # "--restore" flag. Indicate where you want the fili to restore to
# here so you're ready to go. # 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 # INCLUDE LIST OF DIRECTORIES
# Here is a list of directories to include; if you want to include # 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" \ # "/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 # EXCLUDE LIST OF DIRECTORIES
# Even though I am being specific about what I want to include, # 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. # just makes it easier for me to read them and delete them as needed.
# LOGDIR="/dev/null" # 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="duplicity-`date +%Y-%m-%d-%M`.txt"
LOG_FILE_OWNER="user:user" LOG_FILE_OWNER="foobar_user_name:foobar_user_name"
VERBOSITY="-v3" VERBOSITY="-v3"
# END OF USER EDITS
############################################################## ##############################################################
# Script Happens Below This Line - Shouldn't Require Editing # # Script Happens Below This Line - Shouldn't Require Editing #
@ -372,7 +383,7 @@ elif [ "$1" = "--restore-to-dir" ]; then
OPTION="restore" OPTION="restore"
if [[ ! "$2" ]]; then 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 read -e NEWDESTINATION
DEST=$NEWDESTINATION DEST=$NEWDESTINATION
echo ">> You will restore to ${DEST} from ${ROOT}." echo ">> You will restore to ${DEST} from ${ROOT}."