Welcome to MSDN Blogs Sign in | Join | Help

stsadm import / export missing content

in sharepoint v3, the tool stsadm has an operation for importing and exporting sites and/or webs. it is the replacement for smigrate from v2.

so say you want to move a web to a different site collection, you would need to use this tool.

unfortunately there seems to be a bug in the import / export operations.

it's a rather nasty bug too that will move most of your content but not everything, making it extremely difficult to detect.

for example you might have a document library with 20 files but only 5 of them get moved, all without any obvious notices in the log files.

the only way you would even know that it was not a complete import is if you knew the contents you were expecting to show up.


when exporting content you should use the following switches:

stsadm -o export -url <url> -filename <filename> -includeusersecurity -versions 4

when importing that content you should try using:

stsadm -o import -url <url> -filename <filename> -includeusersecurity

 

this has worked for me and my export / imports have been much more successful then without those switches, but you should still try to verify this for yourself as well.

if you're simply move a site collection to a different location you can use stsadm backup / restore which seems to be a little bit more reliable at this point.

a bug has been filed for this problem and the wheels are in motion to help fix this thing

UPDATE: apparently this is not a bug and is by design. if there are documents which are not a published major version or draft copies, they will not be backed up unless you use the -versions 4 switch. it's likely that in almost all cases you will want to use this switch to ensure all content is migrated.

Published Thursday, July 12, 2007 7:52 PM by skelley
Filed under: , ,

Comments

# re: stsadm import / export missing content

Hi,

 After a big migration from SPS 2003 to MOSS, we were reorganizing the Site structure and  

many files were missing following the STSADM export/import.

By just adding the -versions 4, all files were transfered, no one missing

you save me a lot of time. Thank you.

Guillermo

Monday, October 15, 2007 7:14 PM by GuillermoAP

# re: stsadm import / export missing content

I have been trying to use export / import to move a team site underneath the portal structure.  I get no warnings or errors, but also get no new site.  Is it possible to move a WSS site to MOSS?  I've used both version and security switches with no difference in the outcome.

Thursday, April 10, 2008 3:23 PM by kctElgin

# re: stsadm import / export missing content

@kctElgin

hi, i have the same issue/feature. i you use the incluseusersecurity parameter in import, the sourcesite will be overwritten whatever target site you choose.

if you have a solution for this, please contact me.

Monday, April 14, 2008 6:52 AM by ppenn
Anonymous comments are disabled
 
Page view tracker