Solved

Clone Sharepoint website

Posted on 2013-01-12
6
402 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 500 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

705 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