Solved

Restore SharePoint Site on a different server

Posted on 2010-11-20
6
389 Views
Last Modified: 2012-05-10
I am trying to restore a SharePoint site on a different Server (development machine).  I ran this command using STSADM:

stsadm -o backup -url http://www.technologyblends.com -filename c:\backup\technologyblends

This created the technologyblends file (note, I forgot to give it an extension).  Now, I am trying to restore it on a different machine, but am having trouble.  First I did a simple file rename and gave it a .dat extension.  This is the command I am trying to run:

stsadm.exe –o restore –url http://www.technologyblends.com/ -filename C:\technologyblends.dat -overwrite

STSADM does not like the syntax.  I am  not sure what is wrong with it.  Thanks for any help given....

This is for SharePoint 2010 running SQL 2008 R2 (dev machine).  The backup came from a machine running SQL 2008.
0
Comment
Question by:obautista
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:markusdamenous
Comment Utility
Have you created the http:///www.technologyblends.com site on the (new) dev mahine?  My guess is that the restore command won't create the site if it doesnt already exist.  It will overwrite it, so just create a blank one.
0
 
LVL 13

Accepted Solution

by:
markusdamenous earned 250 total points
Comment Utility
Sorry.  More reading..

It can be done.  Specify the restoremethod flag, and set it to new.

http://technet.microsoft.com/en-us/library/cc262087%28office.12%29.aspx
0
 

Author Comment

by:obautista
Comment Utility
The dev machine has a fresh SharePoint install.  Should I be creating a web application and blank site collection before attempting to restore?  Also, what should the restore command look like?  

Thanks....
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 38

Expert Comment

by:Justin Smith
Comment Utility
When you back it up, give it a .bak extension.  When you restore, the web app needs to be there prior.  You aren't required to require over an existing site, so there doesn't have to be one there.
0
 
LVL 13

Expert Comment

by:markusdamenous
Comment Utility
Check out the article I linked to.  If you don't use the restoremethod flag and set it to new, then it will be trying to overwrite a site that doesn't exist.  Either create the site with proper name, then use the same command you posted here.  Or use the article, which means 1 step restore as you won't have to create the site first.
0
 
LVL 38

Assisted Solution

by:Justin Smith
Justin Smith earned 250 total points
Comment Utility
Mark - you are referring to doing farm level restores.  Using the restoremethod switch does NOT apply when restoring site collections.

1. run stsadm -o backup -url ________  -filename path\backupname.bak
2. make sure the destination web app exists (create the site collection if you want but you dont have to)
3. copy backup file to destination server
4. run stsadm -o restore -url ________ -filename path\backupname.bak -overwrite

Done.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now