icinga2-container/usr/bin/backup-postgres

7 lines
118 B
Plaintext
Raw Permalink Normal View History

2016-04-30 23:20:43 +00:00
#!/bin/sh
set -eu
cd /var/lib/postgresql/
pg_dumpall > /backup/postgresql/dump.tmp
mv /backup/postgresql/dump{.tmp,}