A blog by Jose Barreto, a member of the File Server team at Microsoft.
All messages posted to this blog are provided "AS IS" with no warranties, and confer no rights.
Information on unreleased products are subject to change without notice.
Dates related to unreleased products are estimates and are subject to change without notice.
The content of this site are personal opinions and might not represent the Microsoft Corporation view.
The information contained in this blog represents my view on the issues discussed as of the date of publication.
You should not consider older, out-of-date posts to reflect my current thoughts and opinions.
© Copyright 2004-2012 by Jose Barreto. All rights reserved.
Follow @josebarreto on Twitter for updates on new blog posts.
There is no out-of-the-box command in SharePoint to rename a site collection URL. So if you have a site created at http://team/sites/site1 and want to rename it to http://team/sites/site2, you will need to do a backup of the site collection, delete the site collection and restore the backup under a new site collection URL.
The command line for doing this would look like:
If you try to restore to another site on the same content database without first deleting the old one, you end up with an error message saying: [No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click "Content databases" on the Application Management page, select the Web application to us e, and then click "Add a content database".] This is because you would end up with conflicting GUIDs on the same content database. That's why you need to delete the old site before the restore. You could also use a separate content database.
Also note that there is no web interface for this, you need to do this from a command line. Be sure to try this out on a sample test site before you actually move forward on a production environment.
PingBack from http://mikewalsh.bilsimser.com/PermaLink,guid,6e67b9fc-a0c8-4356-b628-38b43dea3649.aspx