homelab/roles/photoview/files/photoview.postgres.backup.sh

6 lines
203 B
Bash
Raw Normal View History

2024-10-01 14:28:28 +02:00
cd /etc/photoview
/usr/bin/docker compose exec -T db pg_dump -U photoview photoview |
/usr/bin/gzip --rsyncable |
/usr/local/bin/restic backup --stdin --stdin-filename photoview-postgres.sql.gz