#!/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
