InnoDB itself does all the job of recovering data.
--log-bin=log_name.
log_name is a file located on some safe media different from the drive on which the data directory is located.
How do I do a point-in-time recovery?
© 2007 John Michael Pierobon