mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
12
roles/openxpki/templates/pre-backup.j2
Normal file
12
roles/openxpki/templates/pre-backup.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump \
|
||||
{% if pki_db_server not in [ '127.0.0.1', 'localhost' ] %}
|
||||
--user={{ pki_db_user }} \
|
||||
--password={{ pki_db_pass | quote }} \
|
||||
--host={{ pki_db_server }} \
|
||||
{% endif %}
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ pki_db_name }} | zstd -c > {{ pki_root_dir }}/backup/{{ pki_db_name }}.sql.zst
|
Reference in New Issue
Block a user