1

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.

2 Answers 2

1

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

1
  • 3
    IMHO it is much cleaner to put the original SQL scripts to create the database under version control.
    – user1822
    Apr 4, 2012 at 6:52
0

I would suggest to backup mysql dump, because if you have to rebuild your development environment, are you sure that the exact same version of MySql will be re-install?

I know that mysql dump take more disk space, but IMHO disk space is a lot cheaper, than take the risk.

I must say I'm not a DBA, so maybe binary database are compatible between mysql version. And with mysql dump it'll be easier if you want to change database platform.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.