Tuesday, January 26, 2010

Backup and Restore SharePoint 2007 subsites

2 options:

1. use stsadm export and import. Type stsadm -help import or stsadm-help export for options. When import, make sure to import to a blank site. Also note some data in the subsite can't be exported, such as workflow related data. For example:

stsadm -o export -url http://sitecollection/subsite -filename subsite -includeusersecurity -haltonfatalerror -cabsize 1023

Note the cabsize switch works around the default 25 MB size limit. Also see http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=28 for a good explanation of moving large subsite.

2. user SharePoint Designer. There seems to be a 25 MB backup limit or bug.

2 comments:

  1. I used the example stsadm -o export -url http://www.mysite1.com -filename c:\mysite1.cmp -cabsize 1024 -includeusersecurity for backup a site in SharePoint. But now i got more then one .cmp files. And i can't restore the files with SharePoint Designer. Do you have a idea for a stsadm command to restore this site backup?

    I hope you can help me.

    ReplyDelete
  2. You can't use -cabsize 1024. The value is up to 1024, but not inclusive. Try 1023 instead.

    ReplyDelete