locked
How to move sharepoint web application from one environment to another RRS feed

  • Question

  • Hi All,

    We have created web application in our dev environment with sharepoint 2010 sp1 enterprise edition. What are the approaches to move it to client environment. If we do restore/backup or content DB attach and detach, GUID issue may araise. So please suggest best approach (if possible pro's/co's also).

    Web application include lists, workflows, document library and custom webparts and many other custom solutions.

    Thanks in Advance

    Harish Kumar


    • Edited by Harish Kumar Wednesday, September 12, 2012 12:35 PM addtional info provided
    Wednesday, September 12, 2012 12:07 PM

Answers

  • If you are building an application that needs to be moved between environments, you should be building it using Visual Studio.  This allows you to create a solution package that can be deployed to multiple environments without worrying about GUID issues.  

    You can attempt to use Save Site as Template to get a .wsp file on the server you have.  You can then install this on another server.  You may or may not have issues though.


    Corey Roth - SharePoint Server MVP blog: www.dotnetmafia.com twitter: @coreyroth

    • Proposed as answer by Ivan-Liu Thursday, September 13, 2012 3:39 AM
    • Marked as answer by Qiao Wei Saturday, September 22, 2012 4:32 PM
    Wednesday, September 12, 2012 1:14 PM
    • If you do a content database backup and restore, you will not have any GUID issues.
    • Any other granular restore operation like doing a site collection backup/restore will alter GUIDs.
    • So I would suggest that you do a content db backup and restore, which requires that you have the same SQL server version and SharePoint version in the target can be higher but not lower.

    Anand

    • Marked as answer by Qiao Wei Saturday, September 22, 2012 4:32 PM
    Wednesday, September 12, 2012 2:16 PM
  • Froodien1 - GUID issues could still occur if the database was already backed up from their "client environment" to their "dev environment" in the past.  If it was created net new in the "dev environment", however, there will be no GUID conflict

    Providing there are no site collection ID conflicts in the database, and there are no other content databases in the same web application which may have a path conflict, backup of the database in the "dev environment" and restoration to the "client environment" should work without a hitch.

    If you do happen to have a conflict with the database GUID, this is something you can easily work around by using PowerShell to mount the content database to the web application, like so:

    Mount-SPContentDatabase $DBName -WebApplication $WebApplicationURL -AssignNewDatabaseId  (and any other parameters/switches you need)

    I hope that helps


    Roger Cormier

    Microsoft
    Premier Field Engineer, SharePoint

    Blog: http://blogs.msdn.com/b/rcormier/
    Twitter: LinkedIn:

    Note: My posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    Wednesday, September 12, 2012 2:30 PM
  • Hi,

    There have three ways to move a web application:

    The option of backup and restore a web application, you can use the SharePoint UI or use the command of stsadm.exe, refer to : http://technet.microsoft.com/en-us/library/cc288396.aspx

    The option of export and import  a web application , you can use the SharePoint UI or use the command of stsadm.exe , refer to : http://technet.microsoft.com/en-us/library/cc262465.aspx

    Content deployment, you can refer to : http://technet.microsoft.com/en-us/library/cc262039.aspx

    (http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/3897e0f4-f357-4a4d-8cee-64066426626a)

    Here are two articles on moving SharePoint Web Application to new server can be referred to.

    Move a SharePoint Web Application to a new server
    http://www.bybugday.com/Lists/Posts/Post.aspx?List=6169a29f%2D5ed5%2D4f06%2D97fe%2Dba493e574f6f&ID=26&RootFolder=%2A&Web=660348a1%2Df1b9%2D4725%2D9603%2Dc1936458afee

    How can we move web application from SharePoint 2010 Standared Edition to Enterprise Edition with content database
    http://social.msdn.microsoft.com/Forums/en-NZ/sharepoint2010general/thread/33f7ffaa-5b75-476c-917a-983dffbbaf4a

    Hope that helps.


    Ivan-Liu

    TechNet Community Support

    • Marked as answer by Qiao Wei Saturday, September 22, 2012 4:32 PM
    Thursday, September 13, 2012 3:16 AM

All replies