Friday, July 11, 2008

Import SharePoint v3 sites using stsadm -o import, replacement for smigrate

So now that you've successfully exported a WSS v3 site we need to figure out how you can import it into another WSS site or into a WSS site sitting underneath your MOSS 2007 site. Again, the export gives us some functionality that smigrate did not, mainly the ability to import user security from our exported file. Here is the command line instructions:

stsadm.exe -o import -url

-filename

-includeusersecurity

-haltonwarning

-haltonfatalerror -updateversions <1-4>

1 - Add new versions to the current file

2 - Overwrite the file and all its versions

3 - Ignore the file

4 - Terminate with conflicts

-quiet

And here is an example:

stsadm.exe -o import -url http://officepoint.blogspot.com/SiteDirectory/NewlyImportedSite -filename C:\backups\officepoint.blogspot.com.bak -includeusersecurity -haltonfatalerror -updateversions 1

This will import my backup file named officepoint.blogspot.com.bak to the site named NewlyImportedSite that sites beneath my MOSS site, it will, of course, include all of the user security from the exported site, it will stop importing if it encounters a fatal error and will update the versions of the site instead of deleting them and replacing them.

1 comment:

digital signature Microsoft said...

Nice information, valuable and excellent posts, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need. Thanks for sharing !