Fabian Williams SharePoint Blog

Solving problems with SharePoint day and night

How to Backup Solutions, Sites in SharePoint 2010 Beta using Central Admin and STSADM


Synopsis:

So the idea here is to prepare to move my work I had in SharePoint 2010 Beta to Release Candidate.  I spent quite a bit of time in SharePoint Saturdays, Conferences, and just figuring stuff out just to ditch it as I upgrade my environment. That said, I wanted to backup as much as i can from my work especially my solutions i created for BCS and the LOB System Databases I used in my Demos. What I will outline below is the methods Out of Box (OOB) that you can use in SharePoint 2010 Beta [hopefully noting much changes in RTM, unless they make it better] to backup your solutions and web apps. I can certainly do this while i build out my next environment which will be after much consideration:

  • A Portable Solution i.e. my IBM Lenovo T61P Dual Core 2.33 with 8 GB RAM
  • Windows 7 x64 Professional
    • Virtual Box
      • One Host as Windows Server 2008 R2 Core
        • Active Directory
        • SQL Server
        • Some kind of SMTP Server
      • One Host as SharePoint Server 2010 RC
        • Squeeze Every Bit of Service App as possible on it
  • Office 2010 RC
  • Visual Studio 2010 RC

Step 1 – Identify the items you want to Backup/Preserve

I identified the following items to keep as i move forward with the some prioritization

  • Must Have
    • Backups of My Visual Studio Solutions as a part of a SharePoint Solution
    • Backups of my Content Database
    • Backups of my Other Databases for Demo Purposes
  • Nice to Have
    • Actual MDF and LDF from SQL because i am a meticulous person; some call it anal
    • The Solution Folder under My Documents for Visual Studio 2010, so I can have my code source files
  • Everything Else
    • All my files along the way worth saving especially drivers, pictures, sample docs to mess with

Step 2 – Perform the Backups in a few Flavors

Using Central Administration in SharePoint 2010 Beta

The first thin I did was to open Central Admin. For our purposes today we will be working with the “Backup and Restore” section; second column second row

clip_image001

After you click Backup and Restore you have a few options, we are actually going to use both of them so we can get the experience. Obviously that is overkill but this serves as a tutorial for us later on. First we will tackle the Farm Backup and Restore then the Granular Backup

clip_image002

Once you click “Perform a Backup” under “Farm Backup and Restore” you get the window below

clip_image003

clip_image004

First we will option to backup all the solutions we have created and at least have saved thus far in the Solution Gallery in SharePoint

clip_image005

Once you have finished selecting the files; in this case only solutions to backup. We also have a directory configured for the drop spot for for our backup files. We then will click next…

clip_image006

We can Monitor the process by clicking the Refresh Button/Link

clip_image007

We can see the processing is Preparing Below

clip_image008

Now the process is running

clip_image009

Finally, the process finishes…

clip_image010

Once we are done, we can inspect the results. Below you will see the status, elapsed time, and location.

clip_image011

Next we will backup using Full Backup process the Web App and all items for Port 80

clip_image012

See status below…

clip_image013

clip_image014

 

clip_image015

Below you will see the folders that are created by default when using the OOB tool and “Farm Backup and Restore”

clip_image022

clip_image023

The second option available to us in SharePoint 2010 Beta for backup is the Granular Backup which allows you to do a “Site Collection” backup. We have two SC’s under a managed path that we will backup.

clip_image016

I goofed with the nomenclature here below, but i wanted you to see the error handling now in SP 2010; very descriptive.

clip_image017

Once the SC is identified, you must provide a path and a File Name, unlike the previous method where you had to just determine the folder, here just as in STSADM commands, you must specify the file name.

clip_image018

Below you will see the Site Collections available; we did BCSAlpha first, now we do Charlie…

clip_image019

clip_image020

clip_image021

As you will note below; there is a backup file created for both BCSAlpha and Charlie

clip_image024

Next, just for show I will do the same backup by using STSADM commands. What i found interesting is that the file sizes were different using this method.  You should also notice the “SharePoint Root” folder is now “14”

clip_image025

And now for Charlie….

clip_image026

Next I opened up SQL Management Studio and made a backup of my Databases

clip_image027

 

clip_image028

There you have it….

Advertisements

March 1, 2010 - Posted by | SharePoint Administration, SharePoint General, SharePoint How-To, SQL Server

5 Comments »

  1. Hi, is there any way to get the RC ?!

    Comment by Kocko | March 16, 2010 | Reply

    • not unless you are on the TAP program. sorry

      Comment by fabiangwilliams | March 20, 2010 | Reply

  2. When I try to do the restore from the beta 2 to rc for sharepoint 2010 it gives the error saying that the database is too old and in not supported, something like “Sequence Cannot upgrade to object whose build version 14.0.4536.1000 is too old, upgrade requires 14.0.4730.1000”, even when I try to do the database attach using the sp-addcontentdb on the sp powershell, I get the same error, I am pretty much stuck on moving my content from beta 2 to rc, is there a way ?

    Comment by Shahid | March 24, 2010 | Reply

    • I have heard through the grapevine that MS is going to have this done by RTM for early adopters. Until then, it is very spotty. I havent really tried to restore my content DB in the end, I guess i can try and let u know bud… I just started from scratch

      Comment by fabiangwilliams | March 24, 2010 | Reply

    • Same here – maybe it might be worth tweaking the version number in the DB and running again…. 🙂

      Comment by Mick | April 23, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: