Selaa lähdekoodia

Give tarsnap root-relative paths

(No more "Removing leading '/' from member names" warnings)
Luke Cyca 11 vuotta sitten
vanhempi
commit
92846aa488
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5
    2
      roles/tarsnap/files/tarsnap.sh

+ 5
- 2
roles/tarsnap/files/tarsnap.sh Näytä tiedosto

@@ -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

Loading…
Peruuta
Tallenna