homelab/roles/atuin-server/files/atuin-server.postgres.backu...

6 lines
194 B
Bash
Raw Normal View History

2024-08-08 17:00:11 +02:00
cd /etc/atuin
/usr/bin/docker compose exec -T db pg_dump -U atuin atuin |
/usr/bin/gzip --rsyncable |
/usr/local/bin/restic backup --stdin --stdin-filename atuin-server-postgres.sql.gz