Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Yet another SQL question - backup

Thread Tools
 
Search this Thread
 
Old 15 July 2003, 11:29 AM
  #1  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi peeps,

I must confess I know nothing of SQL 7/2000 or the manager stuff etc.

My limit is drop *

However I have a webserver with several important databases on it and I need to back it up, automatically, at say 3 am.

How do I do this ? I have searched ntfaq.com and google, but nothing seems to just answer this seemingly simple question.
Old 15 July 2003, 11:41 AM
  #2  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Question

What backup software will you be using?
Old 15 July 2003, 11:49 AM
  #3  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

I am using Veritas 9which does have an OFA but what makes this a little awkward is that the server with all the db's on it is on a DMZ so obvious security aspects if I punch a hole through the Firewall

Basically I need to backup the entire server, dbs, asp stuff etc onto tape on the internal lan !
Old 15 July 2003, 12:17 PM
  #4  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

Stuey,

Well you could run the backup via script using SQL agent which is what I use for all DBs here to copy them to a networked drive which gets backed up. Go to Management->Jobs and create a new job with two steps, call the first step Backup database and add the following TSQL:

DECLARE @BackupFileName varchar(128)
SELECT @BackupFileName = 'F:\Daily Backups\' + DATENAME(dw, GETDATE()) + '<name of db here>.Backup'

BACKUP DATABASE <name of db here> TO DISK=@BackupFileName

Then in the second step call it copy file say, add the following (as an activex script)

Dim BackupFile
Dim Destination
Dim Fs

Set Fs = CreateObject("Scripting.FileSystemObject")

BackupFile = "F:\Daily Backups\" & WeekDayName(WeekDay(Date, 1)) & "<name of db here>.Backup"
Destination = "X:\" & WeekDayName(WeekDay(Date, 1)) & "<name of db here>.Backup"

Fs.CopyFile BackupFile, Destination

Set Fs = nothing

You can then attach a schedule to it to run at a determined time. Using this method you could actually get it FTPed to some online storage space even.

HTH

Gary
Old 15 July 2003, 01:19 PM
  #5  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Wink

Or use the Maintenance wizard to create the jobs
Old 15 July 2003, 01:39 PM
  #6  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

If the box is in a DMZ then the last, last thing you should be doing it mapping shared drives through a firewall to your internal LAN!
Old 15 July 2003, 05:03 PM
  #7  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

Steve,

I realise that but I have no real option to be honest, it needs to be backed up and I have no other option t back it up. Just have to make it as secure as reasonably possible
Old 15 July 2003, 05:15 PM
  #8  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Question

why not just stick a local copy of Veritas on the box?

Stefan
Old 15 July 2003, 10:19 PM
  #9  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

ozzy, it doesnt have a tape drive , its a mirrored 1u box. If it had been me, not my boss, i would have ordered a raid 5 with tape drive !
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
slimwiltaz
General Technical
20
09 October 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
the shreksta
Other Marques
26
01 October 2015 02:30 PM



Quick Reply: Yet another SQL question - backup



All times are GMT +1. The time now is 11:48 AM.