1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-30 00:53:23 +02:00
2024-01-04 17:00:34 +01:00

12 lines
339 B
Django/Jinja

#!/bin/sh
set -eo pipefail
PGPASSWORD={{ funkwhale_db_pass | quote }} /usr/pgsql-16/bin/pg_dump \
--clean \
--create \
--username={{ funkwhale_db_user | quote }} \
--host={{ funkwhale_db_server | quote }} \
{{ funkwhale_db_name | quote }} | \
zstd -c > {{ funkwhale_root_dir }}/backup/{{ funkwhale_db_name | quote }}.sql.zst