locked
Restore Single Site from a .Bak backup RRS feed

  • Question

  • Hello,

    We are using the helpdesk template for our Service Requests and somehow on Monday everything stopped working. The main OpenSRs page just linked requests to the homepage with ?ID=**** and the edit form DataWebPart stopped working. Due to this we want to do a restore of just the servicedesk site. 

    We use "stsadm.exe -o backup -url http://noricanintra -filename \\dkcntshp01\backup\noricanintra.bak -overwrite -backupmethod full" to back up the site every night so have this backup. What I was wondering was if it is possible to somehow restore just the single servicedesk site or if I have to restore the entire http://noricanintra?

    I also have the option of a second SharePoint Site set up in another domain if it's possible to somehow restore to this site and then I could just export/import the single site.

    Any help would be greatly appreciated.

    Thanks

    Carl

     

    Wednesday, November 2, 2011 10:21 AM

Answers

  • STSADM does not allow backups of subsites with the Backup operation. You can use the Export operation to target subsites, but that's a different STSADM operation than Backup. The smallest item you can target with the Backup operation is a site collection, Export allows you to target subsites. Keep in mind though that Export is more of a content migration tool than a backup tool, it doesn't capture as much information about the target as Backup does. Also, the files created by the two operations are not compatible, you can't use a file created via Backup for an Import operation or one created with Export for a Restore operation.

    Based on what you're indicating, you're going to have to Restore it to a recovery environment elsewhere and then take the Export (from recovery farm)/Import (to your production farm) approach, you can't restore anything smaller than a site collection with STSADM's Restore operation.

    John


    MCITP and MCTS: SharePoint, Virtualization, Project Server 2007
    My books on Amazon: The SharePoint 2010 Disaster Recovery Guide and The SharePoint 2007 Disaster Recovery Guide.
    My blog: My Central Admin.
    Monday, November 7, 2011 5:00 PM

All replies

  • What's the path for the site you're trying to restore? Do you know if it is a site collection on its own, or if its a subsite beneath the http://noricanintra site collection?

    If it's a subsite (so the path is something like http://noricanintra/helpdesk), then you're going to have to restore it to a recovery environment elsewhere and then take the export/import approach, you can't restore anything smaller than a site collection with STSADM's Restore operation.

    If it's a site collection (the path would be something similar to http://noricanintra/sites/helpdesk), then the problem is that the Site Collection backup you've been running with STSADM isn't targeting that help desk site collection. While they share a common SharePoint Web Application (which allows them to have the same root URL, http://noricanintra) and possibly a content database, they are two separate site collections and would need to be individually targeted with STSADM's Site Collection Backup operation. In this case, you'd need to see if you have a backup of the content database that contains the help desk site collection and attempt to restore it to a recovery environment, then do a site collection backup of it in the recovery environment and restore it to your http://noricanintra web application with STSADM.

    John


    MCITP and MCTS: SharePoint, Virtualization, Project Server 2007
    My books on Amazon: The SharePoint 2010 Disaster Recovery Guide and The SharePoint 2007 Disaster Recovery Guide.
    My blog: My Central Admin.
    Wednesday, November 2, 2011 1:06 PM
  • Hi,

    I agree with John.

    If you have any questions, feel free to let us know.

    Thanks,

    Rock Wang

    Forum Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

     


    Regards, Rock Wang Microsoft Online Community Support
    Thursday, November 3, 2011 3:44 AM
  • Sorry for not responding quicker, I managed to get it working again in the end, but not through the backup method so would still like some help.

    The ServiceDesk site is at... http://noricanintra/global_IT/servicedesk/default.aspx so I believe it's a subsite of a subsite. We don't have any backup from a SharePoint Designer method, just the stsadm backup.

    Thanks

    Monday, November 7, 2011 9:48 AM
  • Incorrect information removed.  I confused my STSADM commands (Credit to John's post below)

     


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Monday, November 7, 2011 1:42 PM
    Answerer
  • The command I used for the backup was as in my original post. What I need to know is, from that .bak file, is it possible to just pull out either the Global_IT or the ServiceDesk site or do I have to restore the entire site?

     

    Thanks

    Monday, November 7, 2011 4:37 PM
  • STSADM does not allow backups of subsites with the Backup operation. You can use the Export operation to target subsites, but that's a different STSADM operation than Backup. The smallest item you can target with the Backup operation is a site collection, Export allows you to target subsites. Keep in mind though that Export is more of a content migration tool than a backup tool, it doesn't capture as much information about the target as Backup does. Also, the files created by the two operations are not compatible, you can't use a file created via Backup for an Import operation or one created with Export for a Restore operation.

    Based on what you're indicating, you're going to have to Restore it to a recovery environment elsewhere and then take the Export (from recovery farm)/Import (to your production farm) approach, you can't restore anything smaller than a site collection with STSADM's Restore operation.

    John


    MCITP and MCTS: SharePoint, Virtualization, Project Server 2007
    My books on Amazon: The SharePoint 2010 Disaster Recovery Guide and The SharePoint 2007 Disaster Recovery Guide.
    My blog: My Central Admin.
    Monday, November 7, 2011 5:00 PM
  • First off, credit to John for corecting my earlier mistake.  I've edited my earlier post.  I've got a WSS 2.0 STSADM batch file targetting a subsite that quite happily backs-up., but having checked the Technet literature, I see it is indeed parent site only.

    After some further digging and a recollection that Gary Lapointe might have something handy, I've come across this, which might be of use: -

    http://blog.falchionconsulting.com/index.php/2007/09/convert-a-sub-site-to-a-site-collection/

    It's a convert sub-site to site collection, which if used before the back-up should (in theory) give you a root site that the back-up and resatore options can work on.

    Might not be of any use but it's an option for you.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Monday, November 7, 2011 5:23 PM
    Answerer
  • Ok, If I have to do a full restore in to a recovery environment, can this be in a different domain? And if so, how does it work with the SQL database?

    Do you have any guidelines for restoring in to a different environment which has a different servername, URL and SQL Database?

    Thanks

    Tuesday, November 8, 2011 11:05 AM