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

8 lines
208 B
Bash
Raw Normal View History

2024-08-09 13:53:13 +02:00
#!/usr/bin/env bash
cd /etc/gitea
/usr/bin/docker compose exec -T db pg_dump -U gitea gitea |
/usr/bin/gzip --rsyncable |
/usr/local/bin/restic backup --stdin --stdin-filename gitea-postgres.sql.gz