diff --git a/roles/any.tools.backup-scripts/templates/podman-mysql.backup.sh.j2 b/roles/any.tools.backup-scripts/templates/podman-mysql.backup.sh.j2 new file mode 100644 index 0000000..b03d4b3 --- /dev/null +++ b/roles/any.tools.backup-scripts/templates/podman-mysql.backup.sh.j2 @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +podman exec -i {{ item.container }} mysqldump \ + -u {{ item.mysql_user }} \ + -p{{ item.mysql_password }} \ + {{ item.database }} | + /usr/bin/gzip --rsyncable | + /usr/local/bin/restic backup --stdin --stdin-filename {{ item.name }}.sql.gz