Diff
1diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh
2index 31f6309b8ee4791cdc4a931d5d66cba1473b94d5..4ec9af5307c66d7861dfd5454949f51a261008b4 100755
3--- a/dt-s3-backup.sh
4+++ b/dt-s3-backup.sh
5@@ -24,25 +24,25 @@
6
7 # AMAZON S3 INFORMATION
8 # Comment out this lines if you're not using S3
9-#export AWS_ACCESS_KEY_ID=" "
10-#export AWS_SECRET_ACCESS_KEY=" "
11+export AWS_ACCESS_KEY_ID="foobar_aws_key_id"
12+export AWS_SECRET_ACCESS_KEY="foobar_aws_access_key"
13
14 # If you aren't running this from a cron, comment this line out
15 # and duplicity should prompt you for your password.
16 # Comment out if you're not using encryption
17-#export PASSPHRASE="foobar_gpg_passphrase"
18+export PASSPHRASE="foobar_gpg_passphrase"
19
20 # Specify which GPG key you would like to use (even if you have only one).
21 # Comment out if you're not using encryption
22-#GPG_KEY=" "
23+GPG_KEY="foobar_gpg_key"
24
25 # Do you want your backup to be encrypted? yes/no
26-ENCRYPTION='no'
27+ENCRYPTION='yes'
28
29 # The ROOT of your backup (where you want the backup to start);
30 # This can be / or somwhere else -- I use /home/ because all the
31 # directories start with /home/ that I want to backup.
32-ROOT="/"
33+ROOT="/home"
34
35 # BACKUP DESTINATION INFORMATION
36 # In my case, I use Amazon S3 use this - so I made up a unique
37@@ -58,7 +58,7 @@ ROOT="/"
38 #DEST="ftp://user[:password]@other.host[:port]/some_dir"
39 #DEST="rsync://user@host.com[:port]//absolute_path"
40 #DEST="ssh://user[:password]@other.host[:port]/[/]some_dir"
41-DEST="file:///tmp/sranje"
42+DEST="file:///home/foobar_user_name/new-backup-test/"
43
44 # INCLUDE LIST OF DIRECTORIES
45 # Here is a list of directories to include; if you want to include
46@@ -72,12 +72,14 @@ DEST="file:///tmp/sranje"
47 # )
48 #
49 # Simpler example with one location:
50-INCLIST=( "/etc" )
51+INCLIST=( "/home/foobar_user_name/Documents/Prose/" )
52
53 # EXCLUDE LIST OF DIRECTORIES
54 # Even though I am being specific about what I want to include,
55 # there is still a lot of stuff I don't need.
56-EXCLIST=(
57+EXCLIST=( "/home/*/Trash" \
58+ "/home/*/Projects/Completed" \
59+ "/**.DS_Store" "/**Icon?" "/**.AppleDouble" \
60 )
61
62 # STATIC BACKUP OPTIONS
63@@ -85,7 +87,7 @@ EXCLIST=(
64 # duplicity. I use both the `--full-if-older-than` option plus the
65 # `--s3-use-new-style` option (for European buckets). Be sure to separate your
66 # options with appropriate spacing.
67-STATIC_OPTIONS="--full-if-older-than 14D"
68+STATIC_OPTIONS="--full-if-older-than 14D --s3-use-new-style"
69
70 # FULL BACKUP & REMOVE OLDER THAN SETTINGS
71 # Because duplicity will continue to add to each backup as you go,
72@@ -107,9 +109,9 @@ CLEAN_UP_VARIABLE="2"
73 # I run this script as root, but save the log files under my user name --
74 # just makes it easier for me to read them and delete them as needed.
75
76-LOGDIR="/tmp/dupl_log/"
77+LOGDIR="/home/foobar_user_name/logs/test2/"
78 LOG_FILE="duplicity-`date +%Y-%m-%d_%H-%M`.txt"
79-LOG_FILE_OWNER="root:root"
80+LOG_FILE_OWNER="foobar_user_name:foobar_user_name"
81 VERBOSITY="-v3"
82
83 # EMAIL ALERT (*thanks: rmarescu*)