Mysql – Is this an appropriate development environment MySQL backup strategy

backupdevelopmentMySQL

I'm a web developer and I use primarily my own laptop at work. We use an SVN repository for our project codebases, and deploy our changes to an internal development server for testing.

Our system administrator has also implemented an on-site NAS backup, onto which we mirror our most up-to-date sources every few hours automatically.

Given this scenario, is it appropriate for me to simply copy the binary database files from my filesystem to the backup media, rather than to create mysql dumps for each database? The most likely restore scenario would be a complete (rather than partial) reconstruction of my local development environment, anyway.

Best Answer

I would also recommend MySQL dump with an additional twist, place the dump file under version control, at regular intervals, I would recommend when a change is complete. That way you can also track the changes to the database and make reconstruction easier