Solved

Restore SharePoint Site on a different server

Posted on 2010-11-20
6
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:markusdamenous
ID: 34180450
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
ID: 34180455
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
ID: 34180569
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 38

Expert Comment

by:Justin Smith
ID: 34180621
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
ID: 34180673
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
ID: 34181040
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 Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

632 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