?
Solved

Schedule SQL Backup

Posted on 2010-09-06
3
Medium Priority
?
587 Views
Last Modified: 2012-05-10
Hi I'm looking to automat a backup of my SQL server database (2008 express). I would like to do this daily prior to running some other scheduled jobs.Having not created backup schedules befor I was looking for a bit of advice and assistance/examples.

1) What is the best way to get a scheduled back up. Is this through SQL server or create a script and get windows scheduler to run the script (if possible) are there other alternatives.

2) when I perform a backup I would like to keep the past 20 backups. I see that you can set up backups to expire after a certain amount of time. So do I append to an existing backup or do I create a backup with a datestamp - how would I do either?

3) what other things may I need to take into consideration ?

Appologies for this being very general however I have not had much experience here.
0
Comment
Question by:Simon Cripps
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Expert Comment

by:neeraj523
ID: 33611001

1. Better to schedule your backups using SQLServer Agent only

2. Keep appending backups in same file alongwith setting for keeping n number of old backups

3. You can check if you also need to take backup of SQL Log too.. Most of the cases it is not needed.
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 2000 total points
ID: 33611008
In express edition of SQL Server, you can't schedule backups and hence use the script in the link below to schedule automated backups in SQL Server 2008:

http://www.sqldbatips.com/showarticle.asp?ID=27

A more simpler version without deleting older backup files can be found here:

http://www.mssqltips.com/tip.asp?tip=1174
0
 

Author Closing Comment

by:Simon Cripps
ID: 33630552
Many thanks this worked for me
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A safe way to clean winsxs folder from your windows server 2008 R2 editions
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question