views:

783

answers:

2

Without not reason, I lose all my data in my database. Fortunately this is was just test data, but this made me to think what will happen if this was done with a production db.

Ultimately, every developer got a db problem and wan to role-bake the db. We don't do things to protect the db, as we think its a DBA work, but then we got trouble...

What is your backup best practices?

+2  A: 

Since all the developers are also the DBAs where I work, we're collectively responsible for our backup strategy as well - if you care about the data, make sure you're at least informed about how the backups work, even if you're not part of the actual decisions.

The VERY first thing I do (before I even have any databases set up) is set up nightly maintenance plans that include a full backup, and direct those backups to a central network share on a different computer (our NAS). At the very least, for the love of your job, don't put the backups on the same physical storage that your database files sit on. What good are backups if you lose them at the same time you lose the disk?

We don't do point-in-time restores, so we don't do log backups (all our databases are set to Simple recovery mode), but if you want logs backed up, make sure you include those as well, as an acceptable interval as well.

On a side note, SQL 2008 supports compressed backups, which speeds up backup time considerably and makes the files much, much smaller - I can't think of an instance where you wouldn't want to use this option. I'd love to hear one, though, and I'm willing to reconsider!

rwmnau
Is the all backup process run automatically? How do you do this process?
Mendy
When a create a maintenance plan using the wizard, one of the steps is setting the schedule - I usually set mine to run every night at about 1AM, though you could set them to run multiple times/day or on any schedule you want. Then, as long as the SQL Agent is running, the backups will happen automatically. You can even configure email notifications in case a maintenance plan fails for some reason. To see a walkthrough, check out "Invoking The Maintenance Plan Wizard" at http://www.exforsys.com/tutorials/sql-server-2005/sql-server-2005-maintenance-plan-using-wizard.html
rwmnau
+2  A: 

@Mendy

Is the all backup process run automatically? How do you do this process? You can use this tool http://sqlbackupandftp.com/. We used it for free till we need to backup more than two databases. Then we bought a license and still using it now.

Alexey

related questions