1.1.1 Backup
Command
Backup-SPSite “<Site url>”
–Path “<Path of drive on which the backup needs to
be placed followed by backup name.bak>” (For
e.g. Backup-SPSite "http://servername/site" -Path
"\\servername\r$\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\BackUPSiteCollection\Wed\ABC.bak")
1.1.2 Restore
Command
Restore-SPSite “<Site url>”
-path “<Path of drive on which backup is placed >”
-Force -DatabaseServer <Name of the database
instance> -DatabaseName <Name of the
content database need to be attached with> (For e.g. Restore-SPSite
"
http://servername/site " -path
"E:\WSP, document and Termstore\VMNew_bkp.bak" -Force -DatabaseServer
servername\named -DatabaseName WSS_Content_80)
Note: The
above scripts and commands can be executed from any box with respect to the
environment in the SharePoint farm.
No comments:
Post a Comment