RE: Change site type
From: Wei-Dong XU [MSFT] (v-wdxu_at_online.microsoft.com)
Date: 02/11/05
- Next message: Gunjan Desai: "Web part is started after Migration"
- Previous message: Mike Walsh: "Re: recommendations for powerful 3rd party search products?"
- In reply to: sutphinwb_at_nospam.nospam: "Change site type"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 06:07:01 GMT
Hi Bill,
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
restore site:
stsadm.exe -o restore -url http://server_name/site -filename backup.dat
Backing Up and Restoring Web Sites
http://www.microsoft.com/resources/documentation/wss/2/all/adminguide/en-us/
stsf19.mspx
2. programmatically
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)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/htm
l/tsamSPSiteCollectionBackup_SV01013147.asp
Restore Method (SPSiteCollection class)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/htm
l/tsamSPSiteCollectionBackup_SV01013147.asp
Please feel free to let me know if you have any question.
Best Regards,
Wei-Dong XU
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:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.
=====================================================
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
- Next message: Gunjan Desai: "Web part is started after Migration"
- Previous message: Mike Walsh: "Re: recommendations for powerful 3rd party search products?"
- In reply to: sutphinwb_at_nospam.nospam: "Change site type"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|