Failure Decompressing Data from a Cabinet File

The MOSS/WSS GUI is great for many of the day-to-day administrative tasks, but I have found that it falls short on many of the larger tasks such as migrating entire sites or even large lists.  Using the STSADM command line tool with the correct parameters can solve errors like the one in the title of this entry.

stsadm -o export -url http://server/site -includeusersecurity –nofilecompression -filename C:\directory
stsadm -o import -url http://server/site -includeusersecurity -nofilecompression -filename C:\directory

-includeusersecurity = will add ALL of the user accounts that have posted, edited, or have been given direct access to the site.  This can either be a great help or a major pain.  If the site and lists on the site rely heavily on tracking who created/modified files in document libraries, or you have workflows that use people pickers or utilize the createdby or modifiedby fields this should be included.

-nofilecompression = makes the export larger, but does not throw the failure decompressing error.  Using this flag also requires that you use the command line tool to import.

If either of these flags are included on the export, they will also need to be included on the import.

0 comments:

Post a Comment