?
Solved

Clone Sharepoint website

Posted on 2013-01-12
6
Medium Priority
?
407 Views
Last Modified: 2013-01-30
Hello Team:

We would like to clone sharepoint site using powershell, how it is possible? Please provide sample.

We need to clone all the users, workflows, permissions, how ever we would like to have different URL for the cloned site.

Regards,
CS
0
Comment
Question by:CalmSoul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38771327
here:
Clone a SharePoint 2010 Site using PowerShell

btw, it clones single site collections not entire web application.
0
 
LVL 13

Accepted Solution

by:
Yagya Shree earned 2000 total points
ID: 38771467
Hi,

When you are talking about cloning, in sharepoint terms we called it backup/restore

Below are the powershell command to do backup/restore of a site collection in the same farm, same web application but different url:

Backup-SPSite
http://technet.microsoft.com/en-us/library/ff607901.aspx

Restore-SPSite
http://technet.microsoft.com/en-us/library/ff607788.aspx

You should not use a third party tool to do this as this  is a OOB feature present in sharepoint itself.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 38773453
As the previous two proposed solutions do not take into account the backing up and restore of workflows, I don't think they apply to your question. If it is the full web application (being http://yoursite) that you want to copy, then you can just use content database backup and restore:

Backup the content database of the web application
Create the new web application with the new url and temp_content_db as database name
 Attach the content database to SQL
Add the content database to the web application
Delete the temp_content_db

If it is just a site that you want to move including its workflows, you will need to look at 3d party tools (like Sharegate...)
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 5

Author Comment

by:CalmSoul
ID: 38797582
What is the  process of taking backup of only content database?
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 38800146
0
 
LVL 5

Author Comment

by:CalmSoul
ID: 38802007
Thanks KoenVosters, can you please clear the point when you said " Attach the content database to SQL" what do you mean by that?
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question