I have web application where i have created one site collection for development environment. In this site collection i have created Custom web part, custom master page, timer job, ootb list/ library etc. Also User profile services is configured in this web application.

Now I have another farm where i want to create QA environment for the same application for testing purpose so in future if i m doing any changes in dev environment i will just deploy my wsp in QA and test it. Please advice the steps.

3 Answers 3

  1. Back–up content database from the Source SP2010 SQL server and restore it in Destination SP 2010 SQL Server.

  2. Make Sure that the new Content DB has corect permissions (read & write).

  3. In SharePoint Central Admin create a new WebApplication, (e.g. ttp://application/sitename.

  4. Open SharePoint Management Shell and run the command

    Test-SPContentDatabase -name <ContentDB Name> -webapplication http://application/sitename

  5. This command will check the compatibility of the web application with the restored content database.

  6. In SharePoint Central Admin, Navigate to Content Database settings, and remove any existing Content Databases associated with the Web Application http://application/sitename.

  7. Now that you have a Web Application without a content database, you can now Mount the restored content database and attach it to the web Application.

    Mount-SPContentDatabase <Content Database Name> -DatabaseServer <Database Server Name> -WebApplication <http://application/sitename>

  8. After the migration completes, then you can configure User profile service for the newly created web application.

  9. Finally you can deploy your custom web part, custom master page, timer job.


  • thats is the method i would use, saving site as template just wouldnt do and is limited on size
    – Ali Jafer
    Jul 14, 2014 at 7:10

You should start packaging your individual components in Wsp. So i would be easier for you move your solution from one farm yo another.

You should create you Web parts in visual studio, Create a feature to deploy your custom master page, Create list definitions and instances for OOTB list and libraries and deploying these components to your site using features.


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.