public-service-news/news-postgres.backup
2024-05-01 21:11:21 +02:00

7 lines
234 B
Bash
Executable File

#!/bin/sh
# podman exec -it systemd-news-postgres psql -U postgres -f /backup/dump.sql
echo 'news-postgres: creating backup'
podman exec systemd-news-postgres pg_dumpall -U postgres -f /backup/dump.sql
echo 'news-postgres: finished'