Solved

How to automate my sql backup

Posted on 2008-10-03
3
479 Views
Last Modified: 2012-01-12
Dear SQL experts,

I have a database that is being backup manually. Backup to a local file and the file will eventually be put onto tape. (For some reason my SQL Server is not recognising my tape drive but its ok I can live with that because I backup not only my SQL database on it)

What I am asking is a way to automate this backup process.  At the moment I backup my database by going into Management Studio, right-click on the database, select Backup and choose the destination file (overwrite the existing one); then a separate backup process will backup this .bak file to tape. I would like to know what I can do to automate the backup.

Has anyone got a step by step guide for this? I know a bit of SQL so I am not too scared with SQL statements. I heard about creating a permanent device to store the backup but am not sure what is that; also I am not sure about truncating transaction logs. My hope is if there is a standard backup statement that I can schedule it to run at a chosen time. I want to perform FULL backup everyday.

THanks in advance.
0
Comment
Question by:ormerodrutter
3 Comments
 

Accepted Solution

by:
Bretty1 earned 250 total points
ID: 22632210
Hello mate.
Presuming you are using SQL 2005, and you have installed all components you can automate this process with the maintenance wizard.  
As follows in SQL Server Management Studio:
1) Root DB Folder > Management > Maintance Plans.
2) Right click new maintenance plan, when prompted give the maintenance plan a name.
Follow this wizard.
This is the most simple method.  First check and see if this suits your needs.
If you want to get more complicated and have more options, then there is plenty of TSQL options for scripting the backup.
0
 
LVL 7

Expert Comment

by:DarkHill
ID: 22632707
I use the following SP to backup all the DBs on my server every day: http://www.sqldbatips.com/showarticle.asp?ID=27

I then use a JScript to zip the backups and FTP them to our backup server, but I think you have this covered.
0
 
LVL 23

Author Closing Comment

by:ormerodrutter
ID: 31502690
Thanks Bretty1 that works a treat. I supposed backing up the database that way I don't need to worry about transaction logs?

Sorry Darkhill Bretty's solution is easier to follow and he went in first.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
In this article I will describe the Backup & Restore 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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now