#!/bin/sh

set -eo pipefail

/usr/bin/mysqldump --user={{ offen_db_user | quote }} \
                   --password={{ offen_db_pass | quote }} \
                   --host={{ offen_db_server }} \
                   --quick --single-transaction \
                   --add-drop-table {{ offen_db_name }} | \
               zstd -c > {{ offen_root_dir }}/backup/{{ offen_db_name }}.sql.zst

