Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Renaming a site collection

  Asked By: Benny Atkinson         Date: Sep 19, 2009      Category: Sharepoint      Views: 918
 

How do I re-name a site collection? I can't seem to find a way in
Central Administration. I need to change the URL.

Tagged:      

 

9 Answers Found

 
Answer #1       Answered By: Joshuah Huber          Answered On: Sep 19, 2009       

You have to do it at the command line. I can send you a script I have at
work tomorrow, but it is fairly basic. Backup the site, delete the site,
then restore the site  using the new name.

Unless someone else chimes in, I will send you a script in the morning.

 
Answer #2       Answered By: Ciara Collier          Answered On: Sep 19, 2009       

You should use stsadmn command line utility for this purpose. just follow it.


Step:1 You can found that utility at:

<Server Drive>:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\BIN

Step:2 Run given below command:

stsadm -o renameserver -newservername <newname> -oldservername <oldname>


Step:3 Rename your Server via Change Name Operation in Windows Server 2003

Start Menu->Control Panel->System-> Computer Name tab ->Change button

Step:4 Write your new server name

Restart your server machine

After restarting-> open command prompt

<Server Drive>:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\BIN

stsadm -o updatefarmcredentials -userlogin <domainuser> -password <password>
iisreset /noforce

 
Answer #3       Answered By: Keenan Whitehead          Answered On: Sep 19, 2009       

Wait a sec, why are you telling them to rename the server? The question is
how to rename a site  collection, not the Server. If you want to rename a
site collection  you could do an export/import and simply import the site
back in under whatever URL you want it to use now.

 
Answer #4       Answered By: Trisha Wheeler          Answered On: Sep 19, 2009       

This is about site  Collections. Import/export is for site
level work, not Site Collection. Instead it is reccomended that you
use backup to do what you need.

stsadm -o backup -url http://<site collection> -filename c:\file.bak

 
Answer #5       Answered By: Dameon Dejesus          Answered On: Sep 19, 2009       

If you go this route add a "stsadm -o setsitelock -url
http://blah/sites/blahblah -lock noaccess" before the backup and a
corresponding "-lock none" after the restore. Otherwise you may not be
able to restore it, which is terrible news right after you've deleted
it.

Another note is that there is an stsadm operation "renamesite" but it
does not rename site  collections unless you're in host header mode. If
you don't know what that is, then you're not. Regardless "renamesite" is
a big tease and I wish it were named something else.

 
Answer #6       Answered By: Tejaswani Barve          Answered On: Sep 19, 2009       

You must install service pack 1 for MOSS 2007.
Windows SharePoint Services SP1 includes these new Stsadm command line tool
operations:

technet.microsoft.com/en-us/library/cc288442.aspx

 
Answer #7       Answered By: Harshita Padwal          Answered On: Sep 19, 2009       

That SP1 addition is only for ISP-like
installations using Host Header mode. Please don't confuse that with
using Host Headers in standard installation mode. They are two different
actions.

'Host Header mode' is a very rare installation type allowing multiple
root site  collections accessed by two different root URLs. SP1 DID NOT
include the ability to rename site collections for the masses.

 
Answer #8       Answered By: Jennifer Jones          Answered On: Sep 19, 2009       

Since it's a whole site  collection, use backup/restore not
import/export.

Besides.....import/export is completely flaky, and not guaranteed to
include everything

 
Answer #9       Answered By: Annie Norris          Answered On: Sep 19, 2009       

To backup a site  collection (as also correctly mentioned by Todd K), you
use:

Stsadm.exe -o backup -url http://webapp/sites/sitecollection -filename
c:\file.bak

It is a good idea to lock the database from Central
Administration or using stsadm.exe. Please do not confuse this with:

Stsadm.exe -o backup -directory... this is for Catastrophic/Farm level
backups only. Why Microsoft included two different backup options under
one command, I will never know.

 
Didn't find what you were looking for? Find more on Renaming a site collection Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].