Microsoft Windows SharePoint Services 3.0 Backup and Restore by wanghonghx

VIEWS: 5 PAGES: 13

									Hands-on Lab Overview

    1. Introduction

HOL203: Microsoft® Windows® SharePoint ® Services 3.0 Backup and Restore

    2. Technologies Highlighted

            Microsoft® Windows® SharePoint® Services 3.0

    3. Audience

            ITPro – 200 level

    4. Scenario

            Walk through the backup and restore options in Windows SharePoint Services 3.0.

    5. Purpose of Hands-on Lab

            Learn about the enhanced backup and restore options for Windows SharePoint Services 3.0. Topics include the multi- level Recycle
            Bin, the new browser-based user interface, and new options for the command line (stsadm.exe) interface.


Hands-on Lab

Discussion Points                                                                  Actions taken

Exercise 1 – Multi-level Recycle Bin Global Settings

A quick overview of the settings available in the Central Administration for the
Multi-level Recycle Bin.

                                                                                        Login using the following credentials:
Global Recycle Bin settings are applied on a per Web Application basis.                          o Username: administrat or
These settings affect all site collections served from the selected Web                          o Password: pass@word1
Application.                                                                                     o Log on to: LITWARE INC
                                                                                   1
     Wait for the Warmup Script to complete and the popup window to close.
     Open Int ernet Explorer and click on the Central Administration link in the
      Administration folder under Favorites in the Internet Explorer menu.
     The Central Administration page will open, and you should click on the
      Application Management tab near the upper left hand corner of the page.
     The Application Management page will open, and you should click on the
      Web application general settings link in the SharePoint Web Application
      Management section.




     The Web Application General Settings will open, scroll to the bottom of this
      page to view the Recycle Bin Settings.
              o Recycle Bin Status: This setting allows you enable or disable the
                  Recycle Bin for all site collections served in the Web Application.
              o Delete items in the Recycle Bin: Allows you to specify a time to
                  live on the items in a sites Recycle Bin before it is deleted.
              o Second stage Recycle bin: The second stage Recycle Bin is an
                  administrative Recycle Bin for items that have been cleared from
                  the User-level Recycle bin. The settings here allow you to eit her
                  increase the quota a site collection for the second stage Recycle
                  Bin or to disable it entirely.




2
Exercise 2 – End user Recycle Bin

This exercise will take you through the end user Recycle Bin. The scenario
in this exercise involves a project manager trying to setup a site that will help
organize Lit ware’s ability to collect requirements from its customers.

The end user Recycle Bin is a feat ure that allows a site to contain a way to            Open Int ernet Explorer and browse to
undo recent delet e actions. The Recycle Bin retains referenc es to deleted list          http://moss.litwareinc.com/sites/recyclebin, the Recycle Bin Exercise site
items, documents, folders and lists. The time to live for the items in the                collection will appear.
Recycle Bin is determined by the Web Application Settings that are set in the            The Specification Review has been cancelled; click on the Specificati on Review
Cent ral Administration area (see Exercise 1).                                            link, the list item view page will appear.




                                                                                         Click on the Delete Item button, dialog box asking if you are sure you want to
                                                                                          send the item to the Recycle Bin will appear; click Ok to continue.




                                                                                    3
     The sales person for the Contoso account has let us know that he doesn’t think
      Cont oso wants to participate in the red carpet events for requirements
      gathering.
     Click on the Shared Documents link under the Documents section of the left
      navigation area, the Shared Documents library will appear.
     Click on the Customers folder to view the customer list for the red carpet events.
     Move your mouse over the Contoso folder and you will see a drop down option
      appear, open the drop down and select the delete menu item, a dialog box
      asking is you are sure you want to send this folder and its content to the
      Recycle Bin will appear; click Ok to continue.




     Click on the Home tab to return to the home page for the site.
     You realize that the list of initial site setup tasks is still publicly available. This
      should have been removed prior to the site being opened to the sales team.
     Click on the Setup Tasks link under the Lists section of the left navigation area,
      the Setup Tasks list will appear.
     Click on the Settings button and select the Li st Settings drop down list option,
      the list settings page will appear.
     Click on the Delete this list option in the Permissions and Management
      section, a dialog box will appear asking if you are sure that you wish to send the
      list into the Recycle Bin; click Ok to continue.

4
                                                                                      The sales person for the Contoso account has let us know that Cont oso has
                                                                                       changed their mind and does want to participate. The Product Line Manager
                                                                                       has also stated that the Specification Review has to happen.
                                                                                      Click on the Recycle Bin link at the bottom of the left navigation section of the
                                                                                       page, the Recycle Bin page appears.
                                                                                      Click on the checkbox next to the Contoso folder to select it, and then click on
                                                                                       the Delete Selection button (a tragic mistake on the part of the project manager
                                                                                       that will need to be corrected later); a dialog box will appear asking if you are
                                                                                       sure you wish to delete Contoso, click Ok to continue.
                                                                                      Click on the checkbox next to the Specification Review item to select it, and
                                                                                       then click on the Re store Selection button; a dialog box will appear asking if
                                                                                       you are sure you want to restore the Specification Review, click Ok to continue.
                                                                                      Click on the Home tab to verify that the Specification Review has returned to
                                                                                       the Tasks list.

Exercise 3 – Site Collection Recycle Bin

This exercise will highlight the Site Collection Recycle Bin and how it can be
used to restore items from the End user Recycle Bin and the Second stage
Recycle Bin. The scenario in this exercise involves a site collection
administrator in the Litware IT department that gets a call from a project
manager who has just delet ed a folder from his Recycle Bin and needs it
restored.

                                                                                 5
The Site Collection Recycle Bin has two sections. The first is access to all              A project manager has contacted you and tells you that they were trying to
deleted items that are in the End user Recycle bin for every site in the site              restore some customer data from their sites Recycle Bin. The data was in a
collection. This allows for a single access point for an administrator to be               folder called Contoso and it was accidentally delet ed from the Recycle Bin.
able to restore items from any site in a site collection. This operates and               Click on the Recycle Bin link at the bottom of the left navigation section of the
functions in the same way as the End user Recycle Bin that was described in                page, the Recycle Bin page appears.
Exercise 2 except that it displays items for all sites in the site collection. The        At the top of the page there is a link to the Site Collection Recycle Bin, click on
second is the Admin Recycle Bin which contains items that are deleted from                 the Site Collection Recycle Bin link; the Site Collection Recycle Bin page
the End user recycle bin. The size of this Admin Recycle Bin is controlled by              appears.
settings that were set in Exercise 1.




                                                                                          The Site Collection Recycle Bin page will default to the End user Recycle Bin
                                                                                           view. This view will show all items that are in the End user Recycle Bin for all
                                                                                           sites in the site collection. Click on the Deleted from end user Recycle Bin link
                                                                                           in the left navigation section; this will change your view to items deleted from
                                                                                           the end user Recycle Bin.
                                                                                          You will see Contos o listed here, click the checkbox next to the Contoso folder
                                                                                           to select it and press the Restore Selection button; a dialog box asking if you
                                                                                           are sure you want to restore Contoso will appear, click Ok to continue.




                                                                                          Its time to verify that the selection was restored, click on the Home tab in the
                                                                                           upper left hand corner to return to the home page for the Recycle Bin Exercise
                                                                                           site.
                                                                                          Click on the Shared Documents link under the Documents section of the left
                                                                                           navigation area, the Shared Documents library will appear.


                                                                                     6
                                                                                        Click on the Customers folder to view the customer list for the red carpet events,
                                                                                         the Customers folder should now contain the Contoso folder.
                                                                                        As you can see the second stage recycle bin exists to save an administrator
                                                                                         from needing to resort to a full site or site collection restore to retrieve lost data.

Exercise 4 – Central Administration Backup

This exercise will take you through the new Central Administration farm
backup scheduling options.

The Central Administration site has been extended to include a backup and               Open Internet Explorer and click on the Central Administration link in the
restore scheduling system. This system allows an administrator to maintain a             Favorites list, the Central Administration page will appear.
backup of the entire ShareP oint farm with the capability of using both full and        Click on the Operations tab in the upper left hand corner, the Operations page
differential backups that can be stored on both a local and net work drive.              will appear.
                                                                                        In the right hand column there is a section titled Backup and Restore. Click on
                                                                                         the Perform a backup link in this section; the Perform a backup page will
                                                                                         appear.




                                                                                        This page has a number of levels that your backup may be performed on. The
                                                                                         highest level is the Farm which will backup all of the virtual servers in your
                                                                                         SharePoint deployment with all of their associated content databases and
                                                                                         supporting services.
                                                                                        The lowest level backup is a specific content database; this allows you to
                                                                                         specify specific content to backup at a particular time during the day.
                                                                                        For this example select the checkbox next to the Farm and click on Continue to
                                                                                         Backup Options.




                                                                                   7
     The Start Backup page appears; enter C:\HOL\BackupLab\backups in the
      backup location textbox and click Ok to continue.




     The Backup and Restore Status page will appear, this page will auto -refresh to
      pick up status from the SharePoint Timer Service as your schedule d job is
      executed. This can take some time to enter the queue, though the page will
      begin to display status. The backup process can take several minutes to
      complete successfully. You must wait until the phase is listed as “completed”
      before moving on to the next exercise.




8
                                                                                      Your backup is completed. This is a demonstration of a one time backup job.
                                                                                       Using the SharePoint object model within VB.NE T or C# it would be possible to
                                                                                       set recurring events for backup.

Exercise 5 – Central Administration Re store

This exercise will take you through the new Central Administration farm
restore scheduling options

The Central Administration Backup Restoration process allows you two                  This Exercise requires that Exercise 4 be completed. In order to use the restore
methods of restoring content. There is a disaster rec over method which                process a previous backup must be available to restore from.
allows you to recreate the site data by overwriting the content dat abase and         Click on the Operations tab in the upper left hand corner, the Operations page
putting it back to the state it was in at the selected backup timeframe. There         will appear.
is also an in place restore which allows you to restore the content to another        In the right hand column there is a section titled Backup and Restore, click on
content database which could be mapped to a separate virtual server to allow           the Re store from backup link in this section.
you to easily create test environments with production data, or create a
temporary restore location for thos e times when someone wants data
recovered beyond the time that the Recycle Bin retains information.




                                                                                      The Restore from backup – Step 1 page will appear; enter
                                                                                       C:\HOL\BackupLab\backups in the backup loc ation textbox and click Ok to
                                                                                       continue.
                                                                                      The Restore from backup – Step 2 page will appear; select the Backup Full
                                                                                       from the list of available backups and press the Continue Re store Process
                                                                                       button to continue.

                                                                                 9
      The Restore from backup – Step 3 page will appear; you have the option to
       restore all or any portion of the content that is a part of the backup that you
       have selected. Select the SharePoint Web Application to restore and press the
       Continue Re store Process button to continue.




      The Restore from backup – Step 4 page will appear; select the Same
       configuration option, a warning dialog will appear, click Ok to dismiss the dialog
       and then press the Ok button to proceed.




      The Backup and Restore Status page will appear, this page will auto -refresh to
       pick up status from the SharePoint Timer Service as your scheduled job is
       executed. This can take some time to enter the queue, though the page will
       begin to display status.

10
Exercise 6 – Command-line Backup

This exercise will take you through the new command-line farm backup
scheduling options.

Exercise 4 covers the Central Administration interface to back and restore of         Click on the Office 12 Command Prompt icon on the desktop to open a new
the farm. STSA DM includes the same options in backup as well as an option             command prompt.
to export a site as well. The export option is a combination of the Windows           At the C:\ prompt type: stsadm –help and press enter to execute the command;
SharePoint Services 2.0 smigrate and stsadm backup utlities. This export               stsadm will output general usage information to the command prompt:
option allows backup of a site or site collection.                                   
                                                                                           C:\>stsadm -help export

                                                                                           stsadm.exe -o export
                                                                                                 -url <URL to be exported>
                                                                                                 -filename <export file name>
                                                                                                    [-overwrite]
                                                                                                 [-includeusersecurity]
                                                                                                 [-haltonwarning]
                                                                                                 [-haltonfatalerro r]
                                                                                                 [-versions <1-4>
                                                                                                    1 - Last major version for files and list items (defau lt)
                                                                                                    2 - The current version, either the last major or the last minor
                                                                                                    3 - Last major and last minor version for files and list items
                                                                                                    4 - All versions for files and list items]
                                                                                                 [-cabsize <integer fro m 1-1024 mega bytes>]
                                                                                                 [-quiet]

                                                                                      To perform an export of the Litware portal site collection y ou would enter the
                                                                                       following:
                                                                                            stsadm -o export -url http://moss.litwareinc.com/export -filename export.cmp
                                                                                            Note: If the filename does not end with .cmp then it will have .cmp
                                                                                            appended to it
                                                                                      There are a number of optional components of the stsadm export opt ion.
                                                                                                o –overwrit e: Used to force overwriting the output file if it already
                                                                                                     exists.
                                                                                                o –includeusersecurity: Used to include the item level permissions
                                                                                                     and site membership in the export CMP file.
                                                                                                o –haltonwarning: Used to stop the export process if a warning is
                                                                                                     encountered.
                                                                                                o –haltonfatalerror: Used to stop the export proc ess if an error is
                                                                                                     encountered.
                                                                                                o –versions: This determines the number of versions exported in the

                                                                                11
                                                                                               file.
                                                                                         o     –cabsize: Allows you to create CMP files of a cert ain size to split
                                                                                               them apart.
                                                                                          o –quiet: Only outputs warnings and errors and none of the standard
                                                                                               output from the export command.
                                                                                In the command prompt type: copy export.cmp litware.cab
                                                                                Then type: litware.cab and press Enter
                                                                                A windows explorer window should have appeared showing the contents of the
                                                                                 exported site collection.
                                                                                You can see that the CMP file contains several XML files which map files
                                                                                 exported to the DA T files that contain them as well as other required information
                                                                                 for the site.
                                                                                          o ExportSettings.xml contains the settings used to create the CMP
                                                                                               file.
                                                                                          o Requirements.xml contains the list of features that are required for
                                                                                               the site.
                                                                                          o UserGroup.xml contains the list of users invited to the site as well
                                                                                               as their Group membership for site roles.
                                                                                Manifest.xml contains the mapping of all the files, folders and list items that
                                                                                 need to be created for the site. It is the representation of the exported data.

Exercise 7 – Command-line Restore

This exercise will take you through the new command-line farm restore
scheduling options

                                                                              If you do not already have an open command prompt click on the Office 12
                                                                               Command Prompt icon on the desktop to open a new command prompt.
                                                                              At the C:\ prompt type: stsadm –help and press enter to execute the command;
                                                                               stsadm will output general usage information to the command prom pt:

                                                                                     C:\>stsadm -help import

                                                                                     stsadm.exe -o impo rt
                                                                                           -url <URL to import to>
                                                                                           -filename <impo rt file name>
                                                                                           [-includeusersecurity]
                                                                                           [-haltonwarning]
                                                                                           [-haltonfatalerro r]
                                                                                           [-updateversions <1-4>
                                                                                              1 - Add new versions to the current file or list item (default)
                                                                                              2 - Overwrite the item and all its versions (delete then insert)
                                                                                              3 - Ignore the file or list item

                                                                        12
                                                                                        4 - Terminate with conflicts]
                                                                                     [-quiet]

                                                                          To perform an import of the Litware ex port you would ent er the following:
                                                                                stsadm -o import -url http://moss.litwareinc.com/import -filename export.cmp
                                                                          There are a number of optional components of the stsadm import option.
                                                                                    o –includeusersecurity: Used to include the item level permissions
                                                                                        and site membership in the export CMP file.
                                                                                    o –haltonwarning: Used to stop the export process if a warning is
                                                                                        encountered.
                                                                                    o –haltonfatalerror: Used to stop the export proc ess if an error is
                                                                                        encountered.
                                                                                    o –updateversions: This determines how to handle versions as they
                                                                                        are imported.
                                                                                    o –quiet: Only outputs warnings and errors and none of the standard
                                                                                        output from the export command.
                                                                          You can view the results by opening Int ernet Explorer and Browsing to
                                                                           http://moss.litwareinc.com/import




Conclusion

  I.   Conclusion

       In this lab, you got a brief overview of how to utilize the backup and restore options within Windows SharePoint Services 3.0.




                                                                    13

								
To top