Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am trying to create a SQL Job for backing up my database. I want to have:

  1. A weekly full backup
  2. A daily differential backup
  3. Something that will clean up backups that are older that 14 days

I started doing this with the Maintenance Plan, but decided managing it through jobs would be more flexible.

My questions are: how do I name the backup files? Do I name them with a date naming convention and use the same convention to delete old files? Is there an easier way?

If I'm over thinking this and should be using a Maintenance Plan, I would appreciate that answer as well.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I'd recommend Ola's scripts for SQL Server maintenance - backups, re-indexing, checkDB, house-keeping, everything! It takes care of naming conventions too! They are very clever, and award winning too!!!! :)

Personally, if your databases are small, I'd keep to a full daily backup schedule. I believe Microsoft recommend that as well - simplicity is best approach.

Ola's scripts: http://ola.hallengren.com/

share|improve this answer
    
Excellent suggestion. Thanks so much for the help. –  Michael Hedgpeth May 9 '11 at 16:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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