Solved

Restore SharePoint Site on a different server

Posted on 2010-11-20
6
422 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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