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.
Microsoft SharePoint

Avatar of undefined
Last Comment
Doug

8/22/2022 - Mon
Doug

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?
ASKER
Angel02

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.
Doug

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?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Doug

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Angel02

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.
Doug

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]
ASKER
Angel02

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?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Doug

You can also backup using Central Admin
http://www.mssharepointtips.com/tip.asp?id=1040
Doug

The ones I outlined first can be done on a new network.  The last one I posted cannot be moved to a new network.
ASKER
Angel02

If I cannot get access to SQL restore/ backup, is there any other way to copy at least the design templates?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Doug

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