SharePoint stsadm restore operation

stsadm restore operation is used to restore a SharePoint site collection. However, it is much more powerful tool as it allows you to restore not just entire site collection but individual pieces of the site collection such as database, web app and SharePoint farm. 

Syntax is as follows:

stsadm -o restore 

Set of parameters can be used when using restore operation. List of such operation can be found below.

 

                                                                                     
 

Parameter

 
 

Value

 
 

Description

 
 

url

 
 

http://sharepoint/site

 
 

URL of   the site collection where you want your restore to apply

 
 

filename

 
 

Site.back

 
 

File   name of the restore file

 
 

hostheaderwebapplicationurl

 
 

http://sharepoint

 
 

Server   name where you want your restore to happen

 
 

overwrite

 
 

N/A

 
 

Overwrites   an existing site collection currently at the location specified by the url   parameter with the site collection stored in the backup file.

 
 

directory

 
 

C:/folder

 

//network/folder

 
 

Location   of your backup file that you took during backup operation

 
 

restoremethod

 
 

overwrite or new

 
 

Both are   used during restore, but one if restoring to original location (overwrite)   and another to new location (new)

 
 

backupid

 
 

32323-GH-4wsew-TRE-24234

 
 

GUID of   the backup package that should be restored

 
 

item

 
 

Webapp/sharepoint

 
 

Part of   the farm that your restore process should do

 
 

percentage

 
 

1 and   100

 
 

Percentage   gap to be displayed while restore is in process  

 
 

showtree

 
 

N/A

 
 

Presents   user with a tree view of the items to be restored

 
 

suppressprompt

 
 

N/A

 
 

No   prompts are present when restore is in progress

 
 

username

 
 

SQL   user name for the database

 
 

User   name can be used for web app or SQL Server

 
 

password

 
   

Password   for objects being restored. Web app or SQL server

 
 

newdatabaseserver

 
 

SQLDB

 
 

Name of   the SQL instance

 
 

preservechangelog

 
 

N/A

 
 

Preserve   log from being updated

 
 

quiet

 
 

N/A

 
 

Stops   all status messages during restore

 
         

Featured pages