Link to home
Start Free TrialLog in
Avatar of ThatSharepointGuy
ThatSharepointGuyFlag for Japan

asked on

Is it possible to convert a sub site to a new site collection's top site in SP 2007?

We're using MOSS 2007

For instance, say I have these sites:
http://www.companyweb.com/sites/research
http://www.companyweb.com/sites/dev
http://www.companyweb.com/sites/dev/subsite1
http://www.companyweb.com/sites/dev/subsite2
http://www.companyweb.com/sites/technical
http://www.companyweb.com/sites/technical/subsite1
http://www.companyweb.com/sites/technical/subsite2
http://www.companyweb.com/sites/suits
http://www.companyweb.com/sites/blarg

And each one of those subsites has sites.
Is it possible to take "http://www.companyweb.com/sites/technical" and create a new site collection based off of that, called "http://www.companyweb.com/technical"?  I'm going to need all the content to come over too, so any and all subsites under there would need to come over as well (http://www.companyweb.com/sites/technical/subsite1, http://www.companyweb.com/sites/technical/subsite2, etc).

Is there a way to do this without purchasing 3rd party tools, while still keeping data?  I understand any non-relative URL paths will be broken, and that's to be expected.

I'm mainly concerned with data integrity - If i have to go around and fix some links, that's fine.
ASKER CERTIFIED SOLUTION
Avatar of Joe Klimis
Joe Klimis
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your terminology is wrong, I believe.

"http://www.companyweb.com/sites/technical" is a top level sites (typically, /sites/sitename is top level site).

"http://www.companyweb.com/technical" would be a subsite of www.companyweb.com, which I assume is a top level site.

So in your example you are actually moving a top level site to a subsite. At any rate, use the stsadm -o export/import to move subsites to top level sites and vice versa.

http://coppockscoolness.blogspot.com/2008/05/sharepoint-subsite-move-up-1-level.html
Avatar of ThatSharepointGuy

ASKER

Quihong,
Thank you, I failed to notice that i had that written wrong.  I hadn't had my coffee yet :)
The sub site that gets promoted to a top level site will be the top level site in it's own Site Collection and Content Database.
So I want to extract a subsite from the main site, and then restore it to a new site collection with it's own content database.
Would that still work?  I wasn't sure if stsadm could restore a site that was previously a sub-site, to be the top level site in a new site collection connected to a new content database.
Yes it's possible.

Use the stadm -o export/import to promote your subsite to a top level site collection. Create the top level site collection using the same template as the subsite before you actual restore using the import command.

Once u have your top level site collection, u can use the stsadm -o mergecontentdb to split the site collection to it's own contentdb. I'll provide a link with good instructions for this later
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Quihong,
 
Unfortunately, that link to http://www.toddklindt.com isn't coming up for me, on three windows boxes here in the office.  I'll check from home when I get there.
Nope, it didn't work at home last night either.
Are you sure that link is active (ie - not dead, the site didn't move, etc?)
Strange, I am 100% positive the link works.

The link isn't that important. Like I stated, you can add your new content db first, create your new site collection on the new content db, then restore the subsite to the new site collection and forget about the -o mergecontentdb command.
That is indeed strange...I just tried the link again and it came up.   It took a few moments, but it loaded.  Perhaps his site was down yesterday?  Coming from a military network, I thought that it might have been blocked, however that didn't explain the issue from my house.  

Oh well, as you said, it's not that important.  I'll try what you advised, just as soon as I get my test environment back up.

I'll go ahead and assign points now though - there's no need to make anyone wait :)

Thanks Quihong!
Thanks guys.  No need to make you wait while I rebuild my test environment at home :)  Thanks for the awesome link, Quihong!