Link to home
Start Free TrialLog in
Avatar of Angel02
Angel02

asked on

Copy a sharepoint web application to a different Server

I have a working Sharepoint portal on a Server. I now need to create a replica of that SharePoint portal on a completely new/ different server. There will also be a new SQL Server. Can you please provide directions to what I need to copy. Should I copy at the Web Application level or the Farm level?
For now, I saved the site as template and obtained a .wsp file. How good is that going to work?

Please advise.
Avatar of Doug
Doug
Flag of United States of America image

You can't save a web application as a template.  You can save the top level site collection as a template, but not the web application.

Depending on where you are restoring it to, you can use the SQL Backup\Restore method and reattach the content database to SharePoint.  I can outline these steps if you need.

What version of SharePoint are you using?
Avatar of Angel02
Angel02

ASKER

Thank you. That would be great if you could outline the steps. Excuse my ignorance but I am curious to know if "SQL Backup\Restore method and reattach the content database to SharePoint" will copy the Web Application or Site collection? does it have any limitations?

I am using Sharepoint 2010.
The backup\restore method i'm talking about will for all intents and purposes duplicate the farm.  This process is used for creating a dev\test environment from a production site.

The biggest determining factor here between backup methods is going to be how much content you have in your farm.  What is the combined size of your content databases?
ASKER CERTIFIED SOLUTION
Avatar of Doug
Doug
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Angel02

ASKER

Sorry, I currently can't access the SQL server to give you the content size. I ma in the requirements gathering stage. I can however tell you that it's a really small site and content size might not be an issue.

If I had to copy each site collection as template and obtain .wsp for each, will it be any helpful to create a similar SharePoint site if not replica?

I am just trying to understand each scenario. Thanks for helping.
You can do it the way you are using the "Save Site As Template" but that will require you to upload each wsp before you can create a new site collection based on that template.
_______________________
_
You can backup each site collection separately using powershell
     Backup-SPSite -Identity <SiteCollectionGUIDorURL> -Path <BackupFile> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]


Then restore them each:
     Restore-SPSite -Identity <SiteCollectionURL> -Path <Backup file> [-DatabaseServer <DatabaseServerName>] [-DatabaseName <ContentDatabaseName>] [-HostHeader <Host header>] [-Force]
Avatar of Angel02

ASKER

Great! Thank you for the detailed steps with the perfect solution. Can these also be performed if the new environment/website is on a completely different server and different network?

can you please also answer my question above about .wsp?
You can also backup using Central Admin
http://www.mssharepointtips.com/tip.asp?id=1040
The ones I outlined first can be done on a new network.  The last one I posted cannot be moved to a new network.
Avatar of Angel02

ASKER

If I cannot get access to SQL restore/ backup, is there any other way to copy at least the design templates?
If you can log onto the sharepoint server, you can use the powershell method.

If you can get to all of the site collections through a browser, you can use the "Save As Template" method.
*  Save as template
*  Save the templates locally
In the newly created environment
*  Upload the templates
*  Create new sites based on the templates