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 2000 Forums
 SQL Server Administration (2000)
 Copy Transaction log Files

Author  Topic 

JoeR
Starting Member

2 Posts

Posted - 2008-01-07 : 00:32:16
I have a database where we backup the database once a day and then copy the backup to tape. The log files are backup every hour to disk.

In a disaster scenario ie failed server. We would take the tape backup and restore to another server but we need to apply the log files after the last backup. How can you only copy the last log file, with embedded date in the name, to another server

Cheers, JoeR

donpolix
Yak Posting Veteran

97 Posts

Posted - 2008-01-07 : 13:28:40
"How can you only copy the last log file, with embedded date in the name, to another server.."
I'm not sure if I quite get your question correctly, but basically if you have your full backups on tape, then you have to restore the last full backup from tape with norecovery option to the other server, then based on when you had your full backup, pick out all the tlog disk backups you have after the full backup, copy them to the other server, then restore them in sequence.

Do you have your tlog backup files on individual disk files? Or you have them appended on a single file?

Donn Policarpio
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-01-07 : 14:08:44
You can't just copy the last log file as you won't be able to restore to a point in time with that unless the last log file is directly after the full backup. You need the entire transaction log chain after the full backup.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-07 : 16:10:36
also note that in sql server 2005 you can do this by using "copy only" when backing up the log.
since you'll have to upgrade some time in the future anyway

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

JoeR
Starting Member

2 Posts

Posted - 2008-01-07 : 17:54:54
I have hourly individual log files after the daily backup.

What I would like to do is copy the log files, as each one is created, to a File Server.

Then recovery would be using the tape backup and log files (only the ones after the backup) from the File Server.

Cheers, Joe
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-01-07 : 23:09:07
Then you can either copy log backup files to tape, or backup log to remote file server directly.
Go to Top of Page
   

- Advertisement -