Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
364 B

#!/bin/bash -e
/usr/bin/mysqldump \
{% if n8n_db_server not in ['localhost','127.0.0.1'] %}
--user={{ n8n_db_user | quote }} \
--password={{ n8n_db_pass | quote }} \
--host={{ n8n_db_server | quote }} \
{% endif %}
--quick --single-transaction \
--add-drop-table {{ n8n_db_name | quote }} | zstd -c > {{ n8n_root_dir }}/backup/{{ n8n_db_name }}.sql.zst