Sometimes you want to rename a Sharepoint site without losing the content. The way to go is not easy, but it is possible:
-
On the SharePoint server, open a command prompt by selecting Start > Run and typing cmd in the textbox. Click the OK button.
-
Navigate to the directory that contains the utility by typing cd %systemdrive%\program files\common files\microsoft shared\web server extensions\12\bin at the command prompt and pressing [Enter].
-
Now the original site can be backed up by typing stsadm -o backup -url
http://server/sites/site1 -overwrite -filename %systemdrive%\backup.dat at the command prompt and pressing [Enter]. Replace server and site1 as appropriate for your environment.
-
If you are restoring the site to the same virtual server, you must first deleted the original site because the globally-unique identifiers (GUIDs) for SharePoint lists are preserved in the backup file. The SharePoint content database requires that all list GUIDs be unique. Delete the original site by typing stsadm -o deletesite -url
http://server/sites/site1 at the command prompt and pressing [Enter]. Replace server and site1 as appropriate for your environment.
-
Now the site can be restored to its new site name by typing stsadm -o restore -url
http://server/sites/site2 -filename %systemdrive%\backup.dat at the command prompt and pressing [Enter]. Replace server and site2 as appropriate for your environment.
Have fun!
- Source -
7dd933e8-9221-416b-9905-f524d6dfe445|1|5.0