Skip to content

Commit

Permalink
Restrict permissions on Postgres backups files. Resolves sovereign#322.
Browse files Browse the repository at this point in the history
  • Loading branch information
al3x authored and jhauris committed Nov 11, 2014
1 parent 65bd78d commit ca5c3a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/tarsnap/files/tarsnap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fi
cd /home/

# Dump PostgreSQL to file
umask 077
sudo -u postgres pg_dumpall -c | gzip > /decrypted/postgresql-backup.sql.gz

# Do backups
Expand Down

0 comments on commit ca5c3a0

Please sign in to comment.