#!/usr/bin/env bash

podman exec -i {{ item.container }} pg_dump -U {{ item.pg_user }} {{ item.database }} |
    /usr/bin/gzip --rsyncable |
    /usr/local/bin/restic backup --stdin --stdin-filename {{ item.name }}.sql.gz
