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.
 
 
 
 
 
 

9 lines
413 B

#!/bin/sh
for DB in {{ seafile_db_ccnet }} {{ seafile_db_seafile }} {{ seafile_db_seahub }}; do
/usr/bin/mysqldump --user={{ seafile_db_user }} \
--password={{ seafile_db_pass }} \
--host={{ seafile_db_server }} \
--quick --single-transaction \
--add-drop-table $DB | lz4 -c > {{ seafile_data_dir }}/db_dumps/$DB.sql.lz4
done