Kaynağa Gözat

Restrict permissions on Postgres backups files. Resolves #322.

Alex Payne 9 yıl önce
ebeveyn
işleme
c55437d341
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      roles/tarsnap/files/tarsnap.sh

+ 1
- 0
roles/tarsnap/files/tarsnap.sh Dosyayı Görüntüle

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

Loading…
İptal
Kaydet