Appendix A: Backup Control File

 < Day Day Up > 



This appendix presents the code for the backup control file (SMS\Inboxes\ SMSbkup.box\SMSbkup.ctl) used by the SMS Site Backup service when performing a site server backup scheduled through the Backup SMS Site Server database maintenance task. This task can be enabled through the SMS Administrator Console and is discussed at Length in Chapter 18, “Disaster Recovery.”

# Backup Control File for Backup SMS Site Server task # Systems Management Server (SMS) 2.5 Release # Updated August 22, 2001 #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #!!!!         Modify only within the blocks designated with           !!!!# #!!!!                                                                       !!!!# #!!!!                       E d i t i n g   A l l o w e d                   !!!!# #!!!!                                                                       !!!!# #!!!! otherwise you are risking recovery when using the backup snapshot     !!!!# #!!!! created by this control file.                                         !!!!# #!!!!                                                                       !!!!# #!!!! When adding custom commands, make sure there is no "#"                !!!!# #!!!! (the comment character) at the front of the line.                     !!!!# #!!!!                                                                       !!!!# #!!!! For detailed editing guidelines, refer to the "Backup and Recovery"   !!!!# #!!!! chapter in the "Administrator Reference."                             !!!!# #!!!!                                                                       !!!!# #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #!!!!  The backup task FAILS if there are any syntax ERRORS in this file.  !!!!! #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #---------# [Tokens] #---------# #----------------------------- Default Tokens -------------------------------# #                                                                            # # Default tokens and their values:                                           # # -------------------------------------------                                # #  SITE_CODE                 (3 character site code)                         # #  SITE_SERVER               (site server)                                   # #  SITE_DB_SERVER            (site's site system running SQL server)         # #  PROVIDER_SERVER           (server hosting SMS provider)                   # #  SITE_SERVER_ROOT_DIR      (SMS root directory on site server)             # #  SITE_DB_SERVER_ROOT_DIR   (site database root directory on the site system# #                             running SQL server)                            # #  SITE_DB_NAME              (site database name)                            # #  SITE_BACKUP_DESTINATION   (BackUP Destination\<SITE_CODE>Backup)          # #                            (Backup Destination = "Backup Destination" value# #                             from the "Backup SMS Site Server Properties"   # #                             dialog box in the Administrator console)       # #                                                                            # #                                                                            # # Default destination tokens:                                                # #                                                                            # SITE_SERVER_DEST    =  %SITE_BACKUP_DESTINATION%\SiteServer SITE_DB_SERVER_DEST =  %SITE_BACKUP_DESTINATION%\SiteDBServer PROVIDER_SERVER_DEST=  %SITE_BACKUP_DESTINATION%\ProviderServer #----------------------------------------------------------------------------# #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Custom tokens syntax:                                                      * #  <Token>=<Token Value>                                                     * #                                                                            * # Example:                                                                   * #  MyToken=FOO                                                               * #  Where MyToken is the token variable and FOO is its value                  * #                                                                            * #                                                                            * # Add custom Tokens here:                                                    * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** #---------# [Stop] #---------# #----------------------------   Default Services    -------------------------# #                                                                            # # The following basic services are stopped by default                        # #                                                                            # # service     \\%SITE_SERVER%\SMS_SITE_COMPONENT_MANAGER                     # # service     \\%SITE_SERVER%\SMS_EXECUTIVE                                  # # service     \\%SITE_DB_SERVER%\SMS_SQL_MONITOR                             # #----------------------------------------------------------------------------# #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Commands syntax :                                                          * #  service <service name>                                                    * #  exec <executable name>                                                    * #  sleep <seconds>                                                           * #                                                                            * # Examples:                                                                  * #  service \\%SITE_DB_SERVER%\SMS_SQL_MONITOR                                * #                                                                            * #  exec runme.exe                                                            * #  exec runme                                                                * #                                                                            * #  sleep 30 (Maximum 900 sec = 15 minutes)                                   * #                                                                            * # Add custom commands here:                                                  * sleep 30 #                                                                            * #                                                                            * #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** #---------# [Tasks] #---------# # DO NOT MODIFY - Default File backup tasks - DO NOT MODIFY:# #------------------------------------------------------------- file  %SystemDrive%\SMSSetup.lo*         %SITE_SERVER_DEST%\ file  %SITE_SERVER_ROOT_DIR%\bin         %SITE_SERVER_DEST%\SMSServer\bin file  %SITE_SERVER_ROOT_DIR%\inboxes     %SITE_SERVER_DEST%\SMSServer\inboxes file  %SITE_SERVER_ROOT_DIR%\Logs        %SITE_SERVER_DEST%\SMSServer\Logs file  %SITE_SERVER_ROOT_DIR%\data        %SITE_SERVER_DEST%\SMSServer\data #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Command syntax :                                                           * #                                                                            * #  file <source> <destination>                                               * #                                                                            * # For examples, see default backup tasks.                                    * #                                                                            * # Add files to back up here:                                                 * #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** # DO NOT MODIFY - Default Configuration backup tasks - DO NOT MODIFY:# #---------------------------------------------------------------------- machinfo  %SITE_SERVER%         %SITE_SERVER_DEST%\SMSbkSiteConfigNTData.txt machinfo  %SITE_DB_SERVER%      %SITE_DB_SERVER_DEST%\SMSbkSQLConfigNTData.txt #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Command syntax :                                                           * #                                                                            * #  machinfo <source> <destination>                                           * #                                                                            * #                                                                            * # For examples, see default backup tasks.                                    * #                                                                            * #                                                                            * # Add configuration to back up here:                                         * #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** # DO NOT MODIFY - Default Registry backup tasks - DO NOT MODIFY:# #---------------------------------------------------------------------- # Site Server reg \\%SITE_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\NAL             %SITE_SERVER_DEST%\SMSbkSiteRegNAL.dat reg \\%SITE_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS             %SITE_SERVER_DEST%\SMSbkSiteRegSMS.dat reg \\%SITE_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\SNMP_EVENTS     %SITE_SERVER_DEST%\SMSbkSiteRegSNMPEvents.dat reg \\%SITE_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\Updates         %SITE_SERVER_DEST%\SMSbkSiteRegAppHotfix.dat reg `\\%SITE_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Hotfix`    %SITE_SERVER_DEST%\SMSbkSiteRegOSHotfix.dat # Site SQL Server reg \\%SITE_DB_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer   %SITE_DB_SERVER_DEST%\SMSbkSQLRegMSSQLServer.dat reg \\%SITE_DB_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS           %SITE_DB_SERVER_DEST%\SMSbkSQLRegSMS.dat # Presently, the Provider Server is either the Site or Site SQL Server. This #  registry key has therefore already been backed up. reg   \\%PROVIDER_SERVER%\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS               %PROVIDER_SERVER_DEST%\SMSbkProvRegSMS.dat #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Command syntax :                                                           * #                                                                            * #  reg <source> <destination>                                                * #                                                                            * #                                                                            * # For examples, see default backup tasks.                                    * #                                                                            * # Add registry keys to back up here:                                         * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** # DO NOT MODIFY - Default SQL Data backup tasks - DO NOT MODIFY:# #---------------------------------------------------------------------- smssqlinfo  %SITE_DB_SERVER_DEST%\SMSbkSQLConfigSQL sitedbdump  %SITE_DB_NAME%  %SITE_DB_SERVER_DEST%\SMSbkSQLDBsite.dat #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Command syntax :                                                           * #                                                                            * #  Smssqlinfo <destination>                                                  * #  sitedbdump <source> <destination>                                         * #                                                                            * # For examples, see default backup tasks.                                    * #                                                                            * # Add SQL data to back up here: #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** #---------# [Start] #---------# #***************************************************************************** #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-* E d i t i n g   A l l o w e d *-*-*-*-*-*-*-*-*-*-*-* #                                                                            * # Commands syntax :                                                          * #                                                                            * #  service <service name>                                                    * #  exec <executable path and name>                                           * #  sleep <seconds>                                                           * #                                                                            * # Examples:                                                                  * #  service \\%SITE_DB_SERVER%\SMS_SQL_MONITOR                                * #  exec c:\exec_full_path\runme.exe                                          * #  sleep 30                                                                  * #                                                                            * # Add custom commands here :                                           * #                                                                            * #*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* #                                                                            * #***************************************************************************** 



 < Day Day Up > 



Microsoft Systems Management Server 2003 Administrator's Companion
Microsoft Systems Management Server 2003 Administrators Companion (Pro-Administrators Companion)
ISBN: 0735618887
EAN: 2147483647
Year: 2006
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net