Moving site from Development to Production Server

first export the site using command promt

Note: use includeusersecurityat end if need back up with permissions

stsadm.exe -o export -url http://sp/site -filename c:\site.cmp -includeusersecurity

then restore it to production

stsadm.exe -o import -url http://sp/site -filename c:\site.cmp -includeusersecurity

Activating workflows which were in previous back up

1. Open designer -->all files --> workflows -->select the workflow -->open the workflowname.xoml.wfconfig.xml and change the list id to new restored list id.

2. To get list id go to list settings copy the url, then from the id in end replace %2d with (-) and starting three characters with({) and ending three characters with (}) .

ex: if the url is http://SP/services/_layouts/listedit.aspx?List=%7BDEF0D648%2DAADD%2D452B%2D9A80%2D406DC70289BA%7D
then list id is
{DEF0D648-AADD-452B-9A80-406DC70289BA}


Infopath forms:

Change the dataconnections in the forms and publish them once again.

Custum webparts:

copy the .wsp file and restore to solution gallery of production site, then activate the features.

 

No comments:

Post a Comment