I'm working on Mysql data backup and restore system but stuck that how to go with it. An Option which i may think of
Table Wise Backup Method
Creating A Directory With Dateandtime and directoy will have one definition text file with all databases and its table names plus seperate file for each table contaning table structure and table INSERTS.
Table Wise Restore Method
Reading directory and definition file to Sort backups with respect to dates and table names and user can select either all tables or one specific table to restore.
I'll be using PHP for this purpose as i have to upload these backup files automatically on different servers.
Questions
1- Is above backup and restore method is valid?
2- Is there a way by which i can write single file for each Database but still have some way to restore only selected or all tables in database?
3- What are important points i must to keep in mind for such applications?
Please let me know if anything Ambiguous?
mysqldump? That would make everything so much easier.mysqldump. The same for restoring. The single table restore option is a bit tricky when using InnoDB since you rely on the relationships.SHOW CREATE TABLEfor one.