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:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user