mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2023-04-11 15:00
This commit is contained in:
@@ -6,7 +6,7 @@ set -eo pipefail
|
||||
{% if mailman_db_engine == 'postgres' %}
|
||||
{% if mailman_db_server not in ['localhost', '127.0.0.1'] %}
|
||||
PGPASSWORD={{ mailman_db_pass | quote }} \
|
||||
/usr/pgsql-14/bin/pg_dump \
|
||||
/usr/pgsql-15/bin/pg_dump \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ mailman_db_user | quote }} \
|
||||
@@ -15,7 +15,7 @@ PGPASSWORD={{ mailman_db_pass | quote }} \
|
||||
{{ mailman_db_name[db] }} | \
|
||||
zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst
|
||||
{% else %}
|
||||
su - postgres -c "/usr/pgsql-14/bin/pg_dump --clear {{ mailman_db_name[db] }}" | \
|
||||
su - postgres -c "/usr/pgsql-15/bin/pg_dump --clear {{ mailman_db_name[db] }}" | \
|
||||
{% endif %}
|
||||
zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst
|
||||
{% else %}
|
||||
|
Reference in New Issue
Block a user