icinga2-container/usr/bin/backup-postgres

7 lines
118 B
Bash
Executable File

#!/bin/sh
set -eu
cd /var/lib/postgresql/
pg_dumpall > /backup/postgresql/dump.tmp
mv /backup/postgresql/dump{.tmp,}