mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-03-07 16:00
This commit is contained in:
9
roles/unmaintained/matomo/templates/pre-backup.j2
Normal file
9
roles/unmaintained/matomo/templates/pre-backup.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump --user={{ matomo_db_user | quote }} \
|
||||
--password={{ matomo_db_pass | quote }} \
|
||||
--host={{ matomo_db_server | quote }} \
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ matomo_db_name | quote }} | zstd -c > {{ matomo_root_dir }}/backup/{{ matomo_db_name }}.sql.zst
|
Reference in New Issue
Block a user