mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-02-15 16:00
This commit is contained in:
13
roles/kimai/templates/pre-backup.j2
Normal file
13
roles/kimai/templates/pre-backup.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump \
|
||||
{% if kimai_db_server not in ['localhost','127.0.0.1'] %}
|
||||
--user={{ kimai_db_user | quote }} \
|
||||
--password={{ kimai_db_pass | quote }} \
|
||||
--host={{ kimai_db_server | quote }} \
|
||||
--port={{ kimai_db_port | quote }} \
|
||||
{% endif %}
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ kimai_db_name | quote }} | zstd -c > {{ kimai_root_dir }}/backup/{{ kimai_db_name }}.sql.zst
|
||||
|
Reference in New Issue
Block a user