瀏覽代碼

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

Loading…
取消
儲存