Quantcast
Channel: Symantec Connect - Backup and Recovery - 讨论
Viewing all articles
Browse latest Browse all 3749

SQL restore issue

$
0
0
我需要解决方案

Hi Folks,

Need a quick help, do anyone have idea how to perform redirected sql restore that have filestream directory. Below the move template

Restore is failing with sc 13

#  This is a template for the database MOVE command.
#  
OPERATION RESTORE
OBJECTTYPE DATABASE
RESTORETYPE MOVE
#  
#  Replace the database name in the following line with the name of the database that you
#  want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>.
#  
#DATABASE "AMIN_1.7.0"

#  Replace the file path <N:\Amin\AMIN_1.7.0.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "AMIN_1.7.0". 
MOVE  "AMIN_1.7.0"
#TO  "N:\Amin\AMIN_1.7.0.mdf"


#  Replace the file path <G:\AMIN\AMIN_17_Documents_blobs>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Documents_blobs". 
MOVEFILESTREAMDIR  "Documents_blobs"
#TO  "G:\AMIN\AMIN_17_Documents_blobs"


#  Replace the file path <L:\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AMIN_1.7.0_log.ldf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "AMIN_1.7.0_log". 
MOVE  "AMIN_1.7.0_log"
#TO  "L:\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AMIN_1.7.0_log.ldf"

# The following image is type: Full
NBIMAGE "SERVRF42/MSSQL7/ESASDBCLUS/db/AMIN_1.7.0/~/7/001of001/20141026115700//C"
SQLHOST "SRTESTBACKUP01"
NBSERVER "DCABAK02.DCA.COM"
BROWSECLIENT "esasdbclus"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
NUMBUFS 2
ENDOPER TRUE

 

And i am restoring the db to another server with modify the above template as below

OPERATION RESTORE
OBJECTTYPE DATABASE
RESTORETYPE MOVE
#  
#  Replace the database name in the following line with the name of the database that you
#  want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>.
#  
DATABASE "AMIN_1.7.0"

#  Replace the file path <N:\Amin\AMIN_1.7.0.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "AMIN_1.7.0". 
MOVE  "AMIN_1.7.0"
TO  "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AMIN_1.7.0.mdf"


#  Replace the file path <G:\AMIN\AMIN_17_Documents_blobs>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Documents_blobs". 
MOVEFILESTREAMDIR  "Documents_blobs"
TO  "C:\AMIN\AMIN_17_Documents_blobs"


#  Replace the file path <L:\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AMIN_1.7.0_log.ldf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "AMIN_1.7.0_log". 
MOVE  "AMIN_1.7.0_log"
TO  "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AMIN_1.7.0_log.ldf"

# The following image is type: Full
NBIMAGE "SERVRF42/MSSQL7/ESASDBCLUS/db/AMIN_1.7.0/~/7/001of001/20141026115700//C"
SQLHOST "SRTESTBACKUP01"
NBSERVER "DCABAK02.DCA.COM"
BROWSECLIENT "esasdbclus"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE NOTRECOVERED
NUMBUFS 2
ENDOPER TRUE


Viewing all articles
Browse latest Browse all 3749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>