MySQL Forums
Forum List  »  Newbie

Re: Thank You for the mysqldump Suggestion
Posted by: Peter Brawley
Date: April 19, 2013 12:05PM

The simplest test of the correctness of a backup is to run the backup process

%mysql_home%\bin\mysqldump" -uUSR -pPWD -A --add-drop-database -K -E -R >%1\mysqlbak.sql

(note: you need those flags for a complete backup), open the resulting dumpfile with a text editor like NotePad++ or TextPad to change database names to datbasenameBAK, save the result, run the dumpfile in the mysql client with ...

source C:\MySQLBackups\mysqlbak.sql

(note: NO terminating semicolon), then compare the databases and databaseBAKs with something like the script under "Compare two databases" at http://www.artfulsoftware.com/queries.php.



Edited 1 time(s). Last edit at 04/19/2013 12:07PM by Peter Brawley.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.