Update to 2023-04-11 15:00

This commit is contained in:
Daniel Berteaud
2023-04-11 15:00:42 +02:00
parent 2a3d56fddc
commit 138c0bf3b2
55 changed files with 113 additions and 79 deletions

View File

@@ -43,11 +43,11 @@
- when: squashtm_db_engine == 'postgres'
block:
- name: Install pg_dump
package: name=postgresql14
package: name=postgresql15
- name: Dump the database
command: >
/usr/pgsql-14/bin/pg_dump
/usr/pgsql-15/bin/pg_dump
--clean
--create
--host={{ squashtm_db_server | quote }}

View File

@@ -5,7 +5,7 @@ set -eo pipefail
{% if squashtm_db_engine == 'postgres' %}
{% if squashtm_db_server not in ['localhost', '127.0.0.1'] %}
PGPASSWORD={{ squashtm_db_pass | quote }} \
/usr/pgsql-14/bin/pg_dump \
/usr/pgsql-15/bin/pg_dump \
--clean \
--create \
--username={{ squashtm_db_user | quote }} \
@@ -13,7 +13,7 @@ PGPASSWORD={{ squashtm_db_pass | quote }} \
--port={{ squashtm_db_port }} \
{{ squashtm_db_name }} | \
{% else %}
su - postgres -c "/usr/pgsql-14/bin/pg_dump --clear {{ squashtm_db_name }}" | \
su - postgres -c "/usr/pgsql-15/bin/pg_dump --clear {{ squashtm_db_name }}" | \
{% endif %}
zstd -c > {{ squashtm_root_dir }}/backup/{{ squashtm_db_name }}.sql.zst
{% else %}