Solved

Clone Sharepoint website

Posted on 2013-01-12
6
362 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
6 Comments
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 5

Author Comment

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

Expert Comment

by:KoenVosters
Comment Utility
0
 
LVL 5

Author Comment

by:CalmSoul
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now