ソースを参照

Restrict permissions on Postgres backups files. Resolves #322.

Alex Payne 9年前
コミット
c55437d341
1個のファイルの変更1行の追加0行の削除
  1. 1
    0
      roles/tarsnap/files/tarsnap.sh

+ 1
- 0
roles/tarsnap/files/tarsnap.sh ファイルの表示

@@ -58,6 +58,7 @@ fi
58 58
 cd /home/
59 59
 
60 60
 # Dump PostgreSQL to file
61
+umask 077
61 62
 sudo -u postgres pg_dumpall -c | gzip > /decrypted/postgresql-backup.sql.gz
62 63
 
63 64
 # Do backups

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