Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Restore SharePoint Site on a different server

Posted on 2010-11-20
6
Medium Priority
?
446 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 1000 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

664 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