parent
b995cbac2d
commit
ba1979fde0
5 changed files with 24 additions and 11 deletions
@ -0,0 +1,3 @@ |
||||
#!/bin/bash -e |
||||
|
||||
rm -f {{ glpi_root_dir }}/backup/* |
@ -0,0 +1,9 @@ |
||||
#!/bin/bash -e |
||||
|
||||
/usr/bin/mysqldump --user={{ glpi_mysql_user | quote }} \ |
||||
--password={{ glpi_mysql_pass | quote }} \ |
||||
--host={{ glpi_mysql_server | quote }} \ |
||||
--quick --single-transaction \ |
||||
--add-drop-table {{ glpi_mysql_db | quote }} | zstd -T0 -c > {{ glpi_root_dir }}/backup/{{ glpi_mysql_db }}.sql.zst |
||||
|
||||
cp {{ glpi_root_dir }}/web/config/glpicrypt.key {{ glpi_root_dir }}/backup/ |
Loading…
Reference in new issue