Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
662 B

#!/bin/bash -e
/usr/bin/mysqldump --user={{ fpbx_db_user }} \
--password='{{ fpbx_db_pass }}' \
--host={{ fpbx_db_server }} \
--quick --single-transaction \
--add-drop-table {{ fpbx_db_name }} | lz4 -c > {{ fpbx_root_dir }}/db_dumps/{{ fpbx_db_name }}.sql.lz4
/usr/bin/mysqldump --user={{ fpbx_db_user }} \
--password='{{ fpbx_db_pass }}' \
--host={{ fpbx_db_server }} \
--quick --single-transaction \
--add-drop-table {{ fpbx_cdr_db_name }} | lz4 -c > {{ fpbx_root_dir }}/db_dumps/{{ fpbx_db_name }}.sql.lz4