Backup, restore and migration of sites on SharePoint 3 pt. 2/3

January 21st, 2008 | Categories: SharePoint, SharePoint administration

stsadm -o backup and stsadm -o restore

To backup:
  1. On the server locate the file stsadm.exe (if you have sharepoint 2 and sharepoint 3 locate the one in the "12" folder.
  2. Open command prompt and type [path to stsadm.exe]stsadm -o backup -url http://[url-of-the-web-site] -filename [path and name of the file.dat]

To restore: 
  1. Create a web application (but don’t create a site collection)
  2. On the server locate stsadm.exe
  3. Open command prompt and type [path to stsadm.exe]stsadm -o restore -filename [path and name of the file.dat] -url http://[url-of-the-web-site]

PROS:

It migrates the whole site collection perfectly! All data-view-webparts are preserved, all user rights, meta data, etc. are preserved).

CONS:
1, It keeps the same GUIDS of lists and sites, so you can’t use it to create a copy of the site in the same content database. (Example: You have 1 web application and you want to create a copy of the site in the same site collection in the same web application)
2. You can’t backup specific subsites – only entire site collection
3. You need to have access to the server to run stsadm.exe