view extra/soundsoftware/scripted-deploy/config/cron.daily/00-backup-db @ 1586:d0d59d12db94 dockerise

Add some cron scripts, update
author Chris Cannam
date Wed, 16 Aug 2017 16:58:22 +0100
parents
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"