RE: Change site type
From: Wei-Dong XU [MSFT] (v-wdxu_at_online.microsoft.com)
Date: Fri, 11 Feb 2005 06:07:01 GMT
I have two suggestions on this issue for you:
1. use stsadm command
you can use the stsadm to backup the subsites and then remove/recreate the
top-level site with the template you prefer. After that, use the stsadm to
restore the sub site. The commands:
back up site:
stsadm.exe -o backup -url http://server_name/site -filename backup.dat
stsadm.exe -o restore -url http://server_name/site -filename backup.dat
Backing Up and Restoring Web Sites
You can develop one console/window type utility to use the SPS Ojbect model
on the back up and restore. All the operations above can be accomplished by
the SPS OM. The corresponding methods are listed for you:
Backup Method (SPSiteCollection class)
Restore Method (SPSiteCollection class)
Please feel free to let me know if you have any question.
Microsoft Product Support Services
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
If you are outside the United States, please visit our International
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.