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

6 lines
194 B
Bash

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