mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
12
roles/etherpad/templates/pre_backup.sh.j2
Normal file
12
roles/etherpad/templates/pre_backup.sh.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
Reference in New Issue
Block a user