Solved

Schedule SQL Backup

Posted on 2010-09-06
3
583 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
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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

685 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