views:

718

answers:

4

I need to manually edit some of the files inside of the .cmp file created by stsadm export command (or SharePoint Designer backup). I can extract the files and make the edits, but don't know how to properly re-compress the files so that the resulting .cmp file is valid for use with stsadm import.

A: 

Found that the -nofilecompression flag can be used to import uncompressed files, but still looking for the ability to re-compress the Content Migration Package (cmp).

Eugene Katz
+1  A: 

The format for CMP files is Microsoft CAB. So if you can find an archiving utility that will recompress to that format it may work.

Be careful as what you're doing probably isn't supported. Make sure it's thoroughly tested!

Alex Angas
+1  A: 

I ran into this issue recently, and used Cab File Maker 2.0 to rebuild the .cmp file. A write-up of the process I used can be found here - http://www.sharepointnutsandbolts.com/2010/01/editing-cmp-files-to-fix-lookup-field.html

Chris O'Brien