|
|
|
@ -18,13 +18,13 @@ |
|
|
|
|
tags: matrix |
|
|
|
|
|
|
|
|
|
- name: Archive a database dump |
|
|
|
|
command: > |
|
|
|
|
shell: > |
|
|
|
|
/usr/pgsql-13/bin/pg_dump |
|
|
|
|
--clean |
|
|
|
|
--host={{ synapse_pg_db_server }} |
|
|
|
|
--port={{ synapse_pg_db_port }} |
|
|
|
|
--username=sqladmin {{ synapse_pg_db_name }} |
|
|
|
|
--file={{ synapse_root_dir }}/archives/{{ synapse_current_version }}/{{ synapse_pg_db_name }}.sql |
|
|
|
|
--username=sqladmin {{ synapse_pg_db_name }} | |
|
|
|
|
zstd -T0 -10 -c > {{ synapse_root_dir }}/archives/{{ synapse_current_version }}/{{ synapse_pg_db_name }}.sql.zst |
|
|
|
|
environment: |
|
|
|
|
- PGPASSWORD: "{{ pg_admin_pass }}" |
|
|
|
|
tags: matrix |
|
|
|
|