ソースを参照

Give tarsnap root-relative paths

(No more "Removing leading '/' from member names" warnings)
Luke Cyca 11年前
コミット
92846aa488
1個のファイルの変更5行の追加2行の削除
  1. 5
    2
      roles/tarsnap/files/tarsnap.sh

+ 5
- 2
roles/tarsnap/files/tarsnap.sh ファイルの表示

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

読み込み中…
キャンセル
保存