| Proof of concept (MySQL) |
|
|
|
| Written by repostor | ||
| Friday, 11 December 2009 18:54 | ||
1) Create a script that will insert some data in a database.------------- Windows ----------------
--------- UNIX / Linux ---------# vi insert.sh
2) run this script in a shell window--- Windows --- C:\> insert.bat --------- UNIX / Linux ---------# chmod 777 insert.sh # ./insert.sh 3) Do a full backup--- Windows --- C:\Program Files\repostor\Data Protector for MySQL\bin> mysqlbackup -s test --------- UNIX / Linux ---------# /opt/repostor/rdp4MySQL/bin/mysqlbackup -s test
4) Do a log backup (incremental)--- Windows ---C:\Program Files\repostor\Data Protector for MySQL\bin> mysqlbackup -s mysql -l --------- UNIX / Linux ---------# /opt/repostor/rdp4MySQL/bin/mysqlbackup -s mysql -l
( note the transaction log backups are on a per instanace, the -s mysql isn't used ) 6) Terminate the "insert.bat" / "insert.sh" script
7) Do a new transaction log backup (incremental)
C:\Program Files\repostor\Data Protector for MySQL\bin> mysqlbackup -s mysql -l --------- UNIX / Linux ---------# /opt/repostor/rdp4MySQL/bin/mysqlbackup -s mysql -l
( note the transaction log backups are on a per instanace) 8) Verify the content of the "test" table, in the database testecho select * from test;|mysql -D test tid 2009-09-08 14:26:06 9) Drop the database testecho drop database test;|mysql 10) Create the database testecho create database test;|mysql 11) Restore the database |
||
| Last Updated on Monday, 21 December 2009 22:37 |



