Saturday 15 November 2014

SharePoint stsadm backup restore export import

SharePoint site collection backup
--------------------------
1.On your SharePoint server hit WINDOWS + R.Type “cmd” and click OK.
2.In the cmd window navigate to the “C:\Program files\common files\microsoft shared\web server extensions\12\bin” directory.
stsadm -o backup -url -filename [-nositelock] [-overwrite]
Ex:stsadm -o backup -url http://companyweb -filename d:\companyweb.bak -overwrite
3.Press Enter
4. file is there in d drive
How restore back site
1. Create a blank site in target sharepoint
2.On your SharePoint server hit WINDOWS + R.Type “cmd” and click OK.
3.In the cmd window navigate to the “C:\Program files\common files\microsoft shared\web server extensions\12\bin” directory.
4 Type stsadm -o restore -url “http://companyweb” -filename “d:\companyweb.bak” -overwrite
5 Press Enter
Export
Stsadm –o export –url -filename .cmp
To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.
stsadm –o backup –directory -backupmethod
Restore
To import sites to your SharePoint Products and Technologies deployment, you use the following Stsadm command.
Stsadm –o import –url -filename .cmp
To restore a site collection, you must use the following Stsadm command.
stsadm –o restore –url -filename
To restore an entire farm you can use the following Stsadm command.
stsadm –o restore –directory -restoremethod