Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Backup script

Status
Not open for further replies.

timbeullens

IS-IT--Management
May 2, 2007
22
BE
Hi, since I'm more a Hardware-IT guy, I have quistions about the correct programming of a good Backup plan for our SQL Server.

The idea is that I Backup our Databases (5 in total under a single server) every day.

The backups will be stored on a second disc, which is taped every day.

What I want to do is to create a backup of all databases every day, and keep those files for a week.

For example, on monday i create 5 backups (1/database) with suffix Monday that will be overwrited the next monday.
And this for every week day.

How can I do this best?
Do I need to make 7 jobs, one for each day and schedul them on the right day?

Or can I write a script that will add the date or day of the week automatically, and then overwrites the file of the same weekday from the week before?

I'm a complete dummy in SQL so anny help is verry welcome!!

Thanx in advanced!

Tim

tim@cvwarehouse.com
 
Please move this to the forum962

And specify the version of SQL Server also


[sub]____________ signature below ______________
I am Tedward Keyboardhands!!!
You are a amateur developer until you realize all your code sucks.
Jeff Atwood[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top