|
@@ -3,8 +3,8 @@
|
3
|
3
|
# Tarsnap backup script
|
4
|
4
|
# Written by Tim Bishop, 2009.
|
5
|
5
|
|
6
|
|
-# Directories to backup
|
7
|
|
-DIRS="/home /root /decrypted /var/www /var/lib/mysql"
|
|
6
|
+# Directories to backup (relative to /)
|
|
7
|
+DIRS="home root decrypted var/www var/lib/mysql"
|
8
|
8
|
|
9
|
9
|
# Number of daily backups to keep
|
10
|
10
|
DAILY=7
|
|
@@ -24,6 +24,9 @@ MONTHLY_DAY=01
|
24
|
24
|
# Path to tarsnap
|
25
|
25
|
TARSNAP="/usr/local/bin/tarsnap"
|
26
|
26
|
|
|
27
|
+# Extra flags to pass to tarsnap
|
|
28
|
+EXTRA_FLAGS="-C /"
|
|
29
|
+
|
27
|
30
|
# end of config
|
28
|
31
|
|
29
|
32
|
set -e
|