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