Solved

Restore SharePoint Site on a different server

Posted on 2010-11-20
6
402 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Onedrive for business 3 39
Citrix sharefile 1 54
DataTables Form Input issue. 3 51
"This column type cannot be filtered" - Sharepoint 2010 3 74
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

22 Experts available now in Live!

Get 1:1 Help Now