Mercurial > hg > soundsoftware-site
view deploy/config/cron.daily/00-backup-db @ 1626:44cbe9fa0b4e live
Merge
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2019 13:49:16 +0000 |
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"