We had an unscheduled test of our backups last night.
Point-in-time recovery using a mysqldump and binary log files
worked fine (thank goodness).
I’m used to thinking of (Oracle) exports being one thing, and
point-in-time recovery (using hot backups) another. Maybe there’s
a way to do a “PITR” in Oracle using an export, rolling forward
using timestamps rather than SCNs… Don’t know. I know that with
MySQL you can do it.
Last night we had some user-generated data corruption on a
production server. The database was relatively small (a few Gig),
so, after stopping the database and restarting it with
––skip-networking, I imported it from the latest daily
mysqldump. Although I didn’t use ––master-data for the
mysqldump (we had some locking issues with that in the past) I
knew the time that the mysqldump had been started.
I did a little investigation into the binary log files using …
[Read more]