Script to flush MySQL data to disk when taking a snapshot to have consistent data