You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
304 B
10 lines
304 B
#!/bin/sh
|
|
|
|
set -eo pipefail
|
|
|
|
PGPASSWORD='{{ synapse_pg_db_pass }}' /usr/pgsql-13/bin/pg_dump \
|
|
--clean \
|
|
--create \
|
|
--username={{ synapse_pg_db_user }} \
|
|
--host={{ synapse_pg_db_server }} \
|
|
{{ synapse_pg_db_name }} | zstd -T0 -c > {{ synapse_root_dir }}/backup/{{ synapse_pg_db_name }}.sql.zst
|
|
|