mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-06 06:24:52 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
10
roles/gitea/templates/pre_backup.sh.j2
Normal file
10
roles/gitea/templates/pre_backup.sh.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
/usr/bin/mysqldump --user={{ gitea_db_user | quote }} \
|
||||
--password={{ gitea_db_pass | quote }} \
|
||||
--host={{ gitea_db_server }} \
|
||||
--quick --single-transaction \
|
||||
--add-drop-table {{ gitea_db_name }} | \
|
||||
zstd -c > {{ gitea_root_dir }}/backup/{{ gitea_db_name }}.sql.zst
|
Reference in New Issue
Block a user