Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to copy backups to different server automatica

Author  Topic 

pras2007
Posting Yak Master

216 Posts

Posted - 2010-03-23 : 13:02:03
Hello All,

I have 3 servers (prod, QA, dev)…
The prod server has the following backups:

- Full database backup
- Differential database backup
- Transaction log backup

The goal is to copy the backup’s files to the QA and dev environments. I was thinking to create a script that copies those files to the specified server… Does anyone know of a different way to accomplish this goal?

Please advice.
Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-23 : 13:06:25
You should only need to copy the full backup to the other servers. I use xcopy to transfer my backups. You can also take a look at RoboCopy, Fast Copy, or other Windows copy tools.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

pras2007
Posting Yak Master

216 Posts

Posted - 2010-03-23 : 13:21:14
Thanks for the quick response Tkizer!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-23 : 13:53:49
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

DBA in the making
Aged Yak Warrior

638 Posts

Posted - 2010-03-23 : 19:12:40
quote:
Originally posted by tkizer

You should only need to copy the full backup to the other servers.


Why?

There are 10 types of people in the world, those that understand binary, and those that don't.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-23 : 19:15:14
I've never seen a QA or dev environment that needed more than a full backup. The other types of backups would go to tape or some other remote storage. QA/dev typically just need a copy of production at some point in time, rather than a copy of production at a specific point in time.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-03-24 : 04:20:20
Putting aside the needs of QA/DEV (I agree with Tara, I don't want DEV / QA data chaning every few minutes whilst I'm trying to work out how to fix a query!!)

I think a lot of places they make Daily Full backup and Tlog backup every 15 minutes or so, but then copy them to tape once a day, so a failure of the disk may result in loss of a full day's data (maybe nearer to two days if the tape backup runs just before the SQL Full backup)

I think copying backups to remote machine as soon as they are made is a useful failsafe.

I'm interested to know how people do that?

We do:

MOVE Backups from FolderA (where they are created) to FolderB - this fails for any file that is "in use" - i.e. still being created (i.e. that file will be "moved", and then "copied", next time the bath job runs)

COPY any file in FolderB to Remote-Server's-Drive and then MOVE the original file to FolderC

Our database backup routine deletes "old" files (based on create date in database admin table); it checks if they exist in FodlerA or FolderC

Our remote machine deletes all files that are older then 48 hours (assumed to have been copied to tape from MachineA by then)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-24 : 14:02:15
We can't afford to move files around on the disks like that as our backup files are too large (even with compression) and we also can't afford the I/O that it would take. We only copy files to remote machines where we have a need to run DBCC CHECKDB on another server. We rely on our tape backups for the failsafe. To ensure that the tapes are good, we do test restores.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-03-24 : 14:55:48
Tara, is your tape backup once a day? and if so do you worry that Tlog backups during the day are "at risk" of disk failure?

Maybe SANs or somesuch are more immune to disk controller failure or the like?
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-03-24 : 14:57:24
" We can't afford to move files around on the disks like that as our backup files are too large"

Just a thought - would dedicated network card in each machine just to facilitate serverA-serverB file copy negate that? (plus a short piece of fibre optic cable connecting them, of course )
Go to Top of Page
   

- Advertisement -