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. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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:

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

Your Answer


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.