dbTalk Databases Forums  

Automating Restores between SQL Clusters

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Automating Restores between SQL Clusters in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robin9876
 
Posts: n/a

Default Automating Restores between SQL Clusters - 09-02-2009 , 10:09 AM






I have two separate SQL Clusters which I need to automate restoring
one database from Cluster A to Cluster B. The database on Cluster A
has a daily full backup.

How can the restore process be automated between the two clusters?

Reply With Quote
  #2  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Automating Restores between SQL Clusters - 09-02-2009 , 10:14 AM






The easiest way is to script the process.

Alternatively, you could use log shipping if you are in FULL Recovery and do
log backups on the targeted databases. This has the advantage of using a
built-in feature of SQL Server.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Robin9876" <robin9876 (AT) hotmail (DOT) com> wrote

Quote:
I have two separate SQL Clusters which I need to automate restoring
one database from Cluster A to Cluster B. The database on Cluster A
has a daily full backup.

How can the restore process be automated between the two clusters?

Reply With Quote
  #3  
Old   
Uri Dimant
 
Posts: n/a

Default Re: Automating Restores between SQL Clusters - 09-03-2009 , 12:17 AM



Hi
Does it work for you?


RESTORE DATABASE foo
FROM DISK = '\\Primary\D$\dmp_foo.BAK'
WITH FILE = 1, NOUNLOAD , STANDBY = 'E:\mssql7\logs\undo.ldf', STATS =10,
REPLACE ,
MOVE N'foo_Data' TO N'F:\MSSQL\data\foo.MDF',
MOVE N'foo_Log' TO N'E:\mssql\logs\foo.ldf'
go



"Robin9876" <robin9876 (AT) hotmail (DOT) com> wrote

Quote:
I have two separate SQL Clusters which I need to automate restoring
one database from Cluster A to Cluster B. The database on Cluster A
has a daily full backup.

How can the restore process be automated between the two clusters?

Reply With Quote
  #4  
Old   
Robin9876
 
Posts: n/a

Default Re: Automating Restores between SQL Clusters - 09-03-2009 , 09:56 AM



I was not sure if SAN drives could be shared across instances but it
appears to be.

The only issue would be how to identify the bak file, as the file name
changes daily due to containing date time in the name. As an
alternative I could create another backup before the restore to create
a file to a known name but would prefer to use the current backup
process.

On 3 Sep, 06:17, "Uri Dimant" <u... (AT) iscar (DOT) co.il> wrote:
Quote:
Hi
Does it work for you?

RESTORE DATABASE foo
FROM DISK = '\\Primary\D$\dmp_foo.BAK'
WITH FILE = 1, NOUNLOAD , STANDBY = 'E:\mssql7\logs\undo.ldf', STATS =10,
REPLACE ,
MOVE N'foo_Data' TO N'F:\MSSQL\data\foo.MDF',
MOVE N'foo_Log' TO N'E:\mssql\logs\foo.ldf'
go

"Robin9876" <robin9... (AT) hotmail (DOT) com> wrote in message

news:a16c7e99-2186-4fc1-8d9f-f1cb8e3fb14f (AT) y21g2000yqn (DOT) googlegroups.com...

I have two separate SQL Clusters which I need to automate restoring
one database from Cluster A to Cluster B. The database on Cluster A
has a daily full backup.

How can the restore process be automated between the two clusters?

Reply With Quote
  #5  
Old   
Linchi Shea
 
Posts: n/a

Default Re: Automating Restores between SQL Clusters - 09-03-2009 , 11:31 AM



Well, if you backup hte databases, you surely know, or alt least can figure
out, what files you are backing them to, right? The file names may have
datetime strings, but still you should know. If not, what's the point of
doing the backup?

Linchi

"Robin9876" wrote:

Quote:
I was not sure if SAN drives could be shared across instances but it
appears to be.

The only issue would be how to identify the bak file, as the file name
changes daily due to containing date time in the name. As an
alternative I could create another backup before the restore to create
a file to a known name but would prefer to use the current backup
process.

On 3 Sep, 06:17, "Uri Dimant" <u... (AT) iscar (DOT) co.il> wrote:
Hi
Does it work for you?

RESTORE DATABASE foo
FROM DISK = '\\Primary\D$\dmp_foo.BAK'
WITH FILE = 1, NOUNLOAD , STANDBY = 'E:\mssql7\logs\undo.ldf', STATS =10,
REPLACE ,
MOVE N'foo_Data' TO N'F:\MSSQL\data\foo.MDF',
MOVE N'foo_Log' TO N'E:\mssql\logs\foo.ldf'
go

"Robin9876" <robin9... (AT) hotmail (DOT) com> wrote in message

news:a16c7e99-2186-4fc1-8d9f-f1cb8e3fb14f (AT) y21g2000yqn (DOT) googlegroups.com...

I have two separate SQL Clusters which I need to automate restoring
one database from Cluster A to Cluster B. The database on Cluster A
has a daily full backup.

How can the restore process be automated between the two clusters?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.