mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2023-07-25 16:00
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump \
|
||||
{% if n8n_db_server not in ['localhost','127.0.0.1'] %}
|
||||
--user={{ n8n_db_user | quote }} \
|
||||
--password={{ n8n_db_pass | quote }} \
|
||||
PGPASSWORD='{{ n8n_db_pass }}' /usr/pgsql-15/bin/pg_dump \
|
||||
--format=custom \
|
||||
--clean \
|
||||
--create \
|
||||
--username={{ n8n_db_user | quote }} \
|
||||
--host={{ n8n_db_server | quote }} \
|
||||
--port={{ n8n_db_port | quote }} \
|
||||
{% endif %}
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ n8n_db_name | quote }} | zstd -c > {{ n8n_root_dir }}/backup/{{ n8n_db_name }}.sql.zst
|
||||
{{ n8n_db_name | quote }} \
|
||||
-f {{ n8n_root_dir }}/backup/{{ n8n_db_name | quote }}.sqlc
|
||||
|
||||
|
Reference in New Issue
Block a user