Hi,
I would like to backup some MySQL databases on my VPS every hour or 2, then rsync it to a backup server, how would I go about doing this. I think I read somewhere you shouldn't do a direct rsync as the tables would not be locked or something like that. So I have done some looking around and come up with:
mysqlhotcopy - with this I noticed it creates: frm , MYI and MYD
How would I restore these. Would I stop mysql and copy them into username_database and start mysql, would I need to do any repair as the backup be either hourly or every 2 hours
mysqldump - with this I noticed it create an sql file with all the info in it, the only problem I see with this, if I want to restore just one table I would need to remove it from the database then replace it.
What is the best way ?
phpMyAdmin says: MyISAM is the default storage engine on this MySQL server.
The databases are small at the moment but hopefully the site will go well, which mean the database will get bigger.



LinkBack URL
About LinkBacks
Reply With Quote





