Sql-server – Log Shipping to an Existing Database

log-shippingsql serversql-server-2008sql-server-2008-r2

We have a few huge databases we would like to log ship on SQL Server 2008. Unfortunately the link between primary and secondary servers is fast enough to handle log shipping but the initial backup/copy would tie up bandwidth for days, if not weeks, which we would like to avoid if at all possible.

We have made a copy (now a few days old) by backing up the primary database to a hard disk and physically taking the hard disk to the secondary machine and restoring the database there.

Primary and Secondary Servers are in different geographical locations. Primary Server is on SQL Server 2008, Secondary on 2008 R2 (Don't ask why!)

There seems to be no way we can find to get log shipping (or mirroring) to work without starting the backup/copy/restore process from scratch.

Any ideas/solutions would be greatly appreciated.

Best Answer

  1. Turn on log shipping, but don't add any targets
  2. Take a full backup of the primary database
  3. Move the database backup to the secondary server
  4. Restore backup WITH NORECOVERY
  5. Enable the secondary server as a log shipping target
  6. SQL Server will then copy all the log shipping files that it's generated to date to the new server over the link and restore them

I've done this dozens of times and it's never failed, so if it doesn't work then you might want to update the question with the EXACT steps you've taken.

Related Topic