# set mysql var. speed up recovery mysql --login-path=dev-mysql << EOF set global innodb_flush_log_at_trx_commit = 0; set global sync_binlog = 2000; EOF
# restore mysql --login-path=dev-mysql bwi_task_sub < /backup/bwi_task.$(date +%Y-%m-%d).sql
# reset mysql var. mysql --login-path=dev-mysql << EOF set global innodb_flush_log_at_trx_commit = 1; set global sync_binlog = 1; EOF