12 lines
339 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
#!/bin/sh
set -eo pipefail
2023-04-11 15:00:42 +02:00
PGPASSWORD={{ funkwhale_db_pass | quote }} /usr/pgsql-15/bin/pg_dump \
2021-12-01 19:13:34 +01:00
--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