PaulJohannesMarais
asked on
Sharepoint 2010 Site URL
I am a Sharepoint Newbie. We have 2010 installed on a 2008 R2 server. Originally I setup a test site under https://ourserver/sites/test. I now want to copy this site to https://ourserver/ but am struggling to do so. I have looked at using stsadm as well as backup and restore but experiencing problems. What is the best way of doing this?
ASKER
Ok Created a new content Database (does it matter that it has a long generated ID or is it better to name yourself?)
Do I need to create a top level site collection and point to the new content database before I restore?
Do I need to create a top level site collection and point to the new content database before I restore?
Better to name yourself. Yes, you could create a site on the new db, then overwrite it with the restore. This needs to be bumped to a 500 pt question, honestly.
ASKER
Ok, sorry, I have used Exchange-Experts loads but never asked a question, only used existing questions
SO yes, you could create a top level site in the new database. It should do it automatically since the other db already has sites in it. Then do the backup and restore powersehll commands.
ASKER
When you say create a site on the new DB, do you mean create a new site collection with just https://ourserver/ as the URL. If so where do you nominate the newly created DB as the one the new site collection should use ?
Yes. It should auto create it in the new content db. When more than one db attached to a web app, SharePoint automatically distributes the size load across the db's.
If not, there is a powershell command you can run to point to the db. But try the above and let me know.
If not, there is a powershell command you can run to point to the db. But try the above and let me know.
ASKER
Looking at the syntax for the backup-spsite command, do I need any additional parameters or just
"Backup-spsite https://ourserver/sites/test -path c:\filename.bak
Then in the restore the identity will be new url i.e.
restore-spsite https://ourserver -path c:\filename.bak ?
"Backup-spsite https://ourserver/sites/test -path c:\filename.bak
Then in the restore the identity will be new url i.e.
restore-spsite https://ourserver -path c:\filename.bak ?
ASKER
Also, some of the doc libraries are mail enabled, will the restore break this ?
with restore, use the -force or -overwrite (can't remember) when going over an existing site
ASKER
OK, looks good, old site still there, assume that I can delete this when happy that everything has moved accross. The only thing that seems to have remained on the old site is mail is still going to the old libraries and on the new site the option to mail enable is not there. Can't remember where I make mail enable available for all libraries?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What I was saying is that in Doc library settings - communicatons, there was no "incomming e-mail settings" option, but refreshed page and appeared. Going to try delete contacts in Exchange 2010 and see if I can link to new site
ASKER
All sorted although email enabled libraries is one to remember. Thanks for your help Ach1lles
You can then use PowerShell backup-spsite and restore-spsite to backup the site and restore to new url.