Export Site Column/Site Content Type
Detail Link: http://www.andrewconnell.com/blog/articles/MossStsadmWcmCommands.aspx
1. Install
Stsadm.exe-o addsolution-filename e: \ AndrewConnell. SharePoint. StsadmWcmCommands. wsp
2. Deploy
Central Administration» Operations» Solution Management and deploy the solution.
3. Export Site Column
STSADM. EXE-o GenSiteColumnsXml-url http: // wcm-outputFile "c: \ siteColumns. xml"
4. Export Content Type
STSADM. EXE-o GenContentTypesXml-url http: // wcm1-outputFile "c: \ contentTypes. xml"
5. Publish All Items
STSADM. EXE-o PublishAllItems-url http: // wcm-list Pages
The xml file need to delete some attribulte and node (use wss schema find them ),
Otherwise, feature cocould not deploy.
Update :( 2008.6.5)
The exported xml may not comply with the xml schema of wss. You can delete the part that cannot pass the language check in.
In addition, if custom proterty of custom fieldtype is used, the exported data cannot be deployed successfully (it does not conform to the schema). Now, feature is used for deployment.
Later, I may write a blog to talk about this problem.