SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know the process involves backing up the site collection. And restoring it afterwards.

I'm looking for specific steps on the restore process.

I have a site collection at the root of a web application: http://myServer:40123/ I now want to move this root site collection to a different path, e.g. http://myServer:40123/sites/myOldRoot/, so that I can have a new/different root site collection.

What are the steps I need to do? Will I need to create this site collection beforehand or will Restore-SPSite do everything for me?

share|improve this question
up vote 1 down vote accepted

Try to use import Cmdlet

Import-SPWeb http://site -Path export.cmp -UpdateVersions Overwrite

Then execute export

Export-SPWeb http://site -Path "site export.cmp"

I think Restore-SPSite is not working to move Top site collections to subsite

You can also Check Ref for the above cmdlets

share|improve this answer
nice steal, this is how you get accepted answers ;-) – Dennis G Jul 19 at 16:23

You can use PowerShell to do that, check Restore-SPSite cmdlet.

Restore-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak
share|improve this answer
That is incorrect. I cannot restore a top-level web site to a subsite. – Dennis G Nov 18 '11 at 12:21
Hmm, just tried it again and it works. I used top site collection and restored it to same web application as a sub site collection. Did you receive an error or what? – Toni Frankola Nov 18 '11 at 12:28
"Restore-SPSite:The specified URL is not a top level Web site. The backup and restore operations work only for top-level Web sites.". See this post for more information:… - I got it to work now by using Export-SPWeb and Import-SPWeb - maybe you can edit your answer so I have something to accept ;-) – Dennis G Nov 18 '11 at 14:41
Are you trying to move Site Collection (SPSite) or just a single Site (SPWeb), your question is about moving (restoring) entire site collection to another location, while you comment is about moving a single site, so I am bit confused here :) – Toni Frankola Nov 18 '11 at 15:30
Sharepoint and naming of things... I want to move the site collection (SPSite) located at the URL above. This site collection contains only a root web anyways, so in this case my SPSite == SPWeb. In any case: You cannot restore a backed up root site collection to another sub-path. You can only restore it to a root again. – Dennis G Nov 19 '11 at 19:04

I ran into this the other day.

If you are using the url format of http://sharepointserver/sitename then you'll want to visit Define Managed Paths and add the sitename.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.