Mercurial > hg > soundsoftware-site
view deploy/config/cron.daily/00-backup-db @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | c18460da6620 |
children |
line wrap: on
line source
#!/bin/sh outfile="/var/files/backups/postgres-dumpall-`date +%Y%m%d%H%M`" oldmask=`umask` umask 0277 su postgres -c /usr/bin/pg_dumpall > "$outfile" && bzip2 "$outfile" umask "$oldmask"