diff --git a/roles/matrix_synapse/defaults/main.yml b/roles/matrix_synapse/defaults/main.yml index d615722..2ef6022 100644 --- a/roles/matrix_synapse/defaults/main.yml +++ b/roles/matrix_synapse/defaults/main.yml @@ -1,7 +1,7 @@ --- # Synapse version to deploy -synapse_version: 1.29.0 +synapse_version: 1.30.0 # Should ansible handle Synapse upgrades ? If false, only initial install will be done synapse_manage_upgrade: True diff --git a/roles/matrix_synapse/tasks/archive_pre.yml b/roles/matrix_synapse/tasks/archive_pre.yml index eabdfc7..ad0d49f 100644 --- a/roles/matrix_synapse/tasks/archive_pre.yml +++ b/roles/matrix_synapse/tasks/archive_pre.yml @@ -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