mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
13 lines
389 B
Django/Jinja
13 lines
389 B
Django/Jinja
#!/bin/sh
|
|
|
|
set -eo pipefail
|
|
|
|
/usr/bin/mysqldump \
|
|
{% if etherpad_db_server not in ['localhost', '127.0.0.1'] %}
|
|
--user={{ etherpad_db_user }} \
|
|
--password={{ etherpad_db_pass | quote }} \
|
|
--host={{ etherpad_db_server }} \
|
|
{% endif %}
|
|
--quick --single-transaction \
|
|
--add-drop-table {{ etherpad_db_name }} | zstd -c > {{ etherpad_root_dir }}/backup/{{ etherpad_db_name }}.sql.zst
|