Solved

How to automate my sql backup

Posted on 2008-10-03
3
478 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

13 Experts available now in Live!

Get 1:1 Help Now