FS
Documentation

Backup3G 5.1/User Guide

From Documentation

(Difference between revisions)
Jump to: navigation, search
Revision as of 06:48, 18 April 2006
Daniels (Talk | contribs)

← Previous diff
Revision as of 06:53, 18 April 2006
Daniels (Talk | contribs)

Next diff →
Line 1: Line 1:
-Getting Started .....................................................1+Getting Started
-Management Overview ................................................................................4+ 
-Benefits of backup3G .....................................................................4+Management Overview
-backup3G Modules .........................................................................5+Benefits of backup3G
-Technical Overview ......................................................................................8+backup3G Modules
-Setting Up and Using backup3G ...................................................8+Technical Overview
-Roles and Capabilities .....................................................................11+Setting Up and Using backup3G
-Software Environment ....................................................................13+Roles and Capabilities
-Conventions Used ........................................................................................16+Software Environment
-For More Information .................................................................................18+Conventions Used
-Information on Backup Jobs ..............................19+For More Information
-Planning Your Backup Policies and Procedures ......................................20+Information on Backup Jobs
-Planning Backup Policies ................................................................20+Planning Your Backup Policies and Procedures
-Designing Backup Procedures to Aid Data Recovery ...............21+Planning Backup Policies
-Preparing to Use backup3G ........................................................................25+Designing Backup Procedures to Aid Data Recovery
-iv Contents+Preparing to Use backup3G
-Backup Components ....................................................................................27+Backup Components
-Backup Jobs ......................................................................................27+Backup Jobs
-Backup Items ....................................................................................27+Backup Items
-Backup Methods ..............................................................................27+Backup Methods
-Removing and Renaming Backup Job Components .................28+Removing and Renaming Backup Job Components
-What is Backed Up? .....................................................................................29+What is Backed Up?
-What is the Data Object .................................................................29+What is the Data Object
-Is the Data on a UNIX host or non-UNIX host .......................30+Is the Data on a UNIX host or non-UNIX host
-Back Up the Whole Filesystem or Selected Files ........................31+Back Up the Whole Filesystem or Selected Files
-Deleting Backup ...............................................................................32+Deleting Backup
-How is it Backed Up? ..................................................................................34+How is it Backed Up?
-Single Volume or Multi-volume ....................................................34+Single Volume or Multi-volume
-Single-part Backup Step or Multi-part Backup Step ..................34+Single-part Backup Step or Multi-part Backup Step
-Scheduled, Automatic, or At-request Backup .............................35+Scheduled, Automatic, or At-request Backup
-The FSbackup Command ...............................................................35+The FSbackup Command
-One-off Archive or Reusable Backup Job ...................................36+One-off Archive or Reusable Backup Job
-Appending Backups ........................................................................37+Appending Backups
-What Format is it Written In? ....................................................................41+What Format is it Written In?
-Format of Backup: cpio, dump, tar, image ..................................41+Format of Backup: cpio, dump, tar, image
-Data Compression ...........................................................................41+Data Compression
-Index Method: Standard, ls_index Method, or No Index .........42+Index Method: Standard, ls_index Method, or No Index
-Creating Indexes Faster With ls_index .........................................43+Creating Indexes Faster With ls_index
-Creating an Index for an Existing Backup ...................................43+Creating an Index for an Existing Backup
-Information on Recovery ....................................45+Information on Recovery
-Searching Backup Media ..............................................................................46+Searching Backup Media
-Multi-part Recovery ......................................................................................50+Multi-part Recovery
-Restricting Recovery Destinations by Role ..............................................51+Restricting Recovery Destinations by Role
-Information on Media .........................................53+Information on Media
-Media Database .............................................................................................54+Media Database
-Media Management Concepts ....................................................................55+Media Management Concepts
-How backup3G Tapes are Structured ..........................................56+How backup3G Tapes are Structured
-Media Set ...........................................................................................56+Media Set
-Scratch Media ...................................................................................57+Scratch Media
-Media Balancing and Backup Cycling ...........................................57+Media Balancing and Backup Cycling
-Media Life Cycle ...........................................................................................59+Media Life Cycle
-Media Support Tables ..................................................................................61+Media Support Tables
-Media Table Locking .......................................................................63+Media Table Locking
-Contents v+Information on Drives and Drive Pools
-Information on Drives and Drive Pools .............65+About Drives and Drive Pools
-About Drives and Drive Pools ...................................................................66+Drive Pools
-Drive Pools .......................................................................................67+Physical and Logical Drives
-Physical and Logical Drives ........................................................................68+Drive and Device Locking
-Drive and Device Locking .............................................................69+Drive Operations and Load Operations
-Drive Operations and Load Operations ......................................69+Scheduling Backup Jobs to a Stacker
-Scheduling Backup Jobs to a Stacker .........................................................71+Allocating Tapes to a Stacker
-Allocating Tapes to a Stacker .........................................................72+Setting Up Backups
-Setting Up Backups .............................................73+How to Define a Backup Item
-How to Define a Backup Item ...................................................................74+How to Define a Backup Job
-How to Define a Backup Job .....................................................................78+To Define Information About a Backup Job
-To Define Information About a Backup Job ..............................78+To Define the Steps in a Backup Job
-To Define the Steps in a Backup Job ...........................................83+To Maintain the Steps in a Backup Job
-To Maintain the Steps in a Backup Job ........................................84+To Set Up a Duty for a Backup Job
-To Set Up a Duty for a Backup Job .............................................85+Example: Define a Backup Job
-Example: Define a Backup Job .....................................................86+How to Define a Retention Period
-How to Define a Retention Period ............................................................88+Initiating and Managing Backups
-Initiating and Managing Backups ......................89+Background and Interactive Jobs
-Background and Interactive Jobs ..................................................90+Queued Jobs
-Queued Jobs .....................................................................................90+How to Manage a Backup Job
-How to Manage a Backup Job ....................................................................94+Backup Monitor
-Backup Monitor ...............................................................................94+How To Archive Files and Directories
-How To Archive Files and Directories .....................................................99+Recovering Data
-Recovering Data ...................................................103+Recovery Options
-Recovery Options .........................................................................................104+Recovering From Indexes
-Recovering From Indexes ..............................................................104+Single-Volume Backups
-Single-Volume Backups ..................................................................105+Multi-part Backups
-Multi-part Backups ..........................................................................105+How To Recover Files From Backup
-How To Recover Files From Backup .......................................................106+To Recover Files From a Known Backup
-To Recover Files From a Known Backup ...................................106+To Recover Using Search
-To Recover Using Search ...............................................................110+How to Recover backup3G
-How to Recover backup3G ........................................................................112+To Recover backup3G Manually
-To Recover backup3G Manually ..................................................113+Layout of the Media Catalog
-Layout of the Media Catalog ..........................................................114+Managing Removable Media
-vi Contents+How To Read and Maintain Media Details
-Managing Removable Media ..............................115+Adding a New Media Location
-How To Read and Maintain Media Details ..............................................116+Adding Backup Media Details
-Adding a New Media Location ......................................................116+Adding a New Media Type
-Adding Backup Media Details .......................................................118+Recording a Media Maintenance History
-Adding a New Media Type ............................................................124+How To Read Backup Media Contents
-Recording a Media Maintenance History .....................................125+Search Media Contents for Base Directories
-How To Read Backup Media Contents ....................................................127+Search Online Indexes for Backup Files
-Search Media Contents for Base Directories ..............................128+Managing Drives
-Search Online Indexes for Backup Files ......................................129+Before You Use a Removable Media Drive
-Managing Drives ..................................................133+How To Add A New Tape or Disk Drive
-Before You Use a Removable Media Drive .............................................134+How To Perform Tape Drive Operations
-How To Add A New Tape or Disk Drive ...............................................136+Appendix A—Installing and Configuring
-How To Perform Tape Drive Operations ................................................141+Installing backup3G
-Appendix A—Installing and Configuring .........143+Configuring backup3G
-Installing backup3G .....................................................................................144+Removable Media Drives
-Configuring backup3G ................................................................................145+Add Media to the Media Library
-Removable Media Drives ............................................................................147+Generate Simple Backup Scheme
-Add Media to the Media Library ................................................................148+Create Symbolic Links for Methods Run by FSremote
-Generate Simple Backup Scheme ..............................................................149+Add backup3G Duties to duty3G
-Create Symbolic Links for Methods Run by FSremote ..........................152+Install/Deinstall Enterprise Backup Support
-Add backup3G Duties to duty3G ..............................................................153+Appendix B—Checking Job Status Codes
-Install/Deinstall Enterprise Backup Support ...........................................154+Status of Active Backup and Recovery Jobs
-Appendix B—Checking Job Status Codes ........155+Status of Completed Backup and Recovery Jobs
-Status of Active Backup and Recovery Jobs ............................................156+Appendix C—Backup Methods and Drivers
-Status of Completed Backup and Recovery Jobs. ...................................157+Multi-part Backup Methods: How They Work
-Appendix C—Backup Methods and Drivers ....159+Passing Options to a Backup Method
-Multi-part Backup Methods: How They Work ........................................160+backup3G Driver Scripts
-Passing Options to a Backup Method .......................................................163+FScpio
-backup3G Driver Scripts .............................................................................165+FSdump
-FScpio .............................................................................................................166+FSimage
-FSdump ..........................................................................................................167+Appendix D—Defining Backup Methods
-FSimage ..........................................................................................................168+How to Define Backup Methods
-Contents vii+Shell Variables in Backup Commands
-Appendix D—Defining Backup Methods ..........169+
-How to Define Backup Methods ...............................................................170+
-Shell Variables in Backup Commands .......................................................174+
== Getting Started == == Getting Started ==

Revision as of 06:53, 18 April 2006

Getting Started

Management Overview Benefits of backup3G backup3G Modules Technical Overview Setting Up and Using backup3G Roles and Capabilities Software Environment Conventions Used For More Information Information on Backup Jobs Planning Your Backup Policies and Procedures Planning Backup Policies Designing Backup Procedures to Aid Data Recovery Preparing to Use backup3G Backup Components Backup Jobs Backup Items Backup Methods Removing and Renaming Backup Job Components What is Backed Up? What is the Data Object Is the Data on a UNIX host or non-UNIX host Back Up the Whole Filesystem or Selected Files Deleting Backup How is it Backed Up? Single Volume or Multi-volume Single-part Backup Step or Multi-part Backup Step Scheduled, Automatic, or At-request Backup The FSbackup Command One-off Archive or Reusable Backup Job Appending Backups What Format is it Written In? Format of Backup: cpio, dump, tar, image Data Compression Index Method: Standard, ls_index Method, or No Index Creating Indexes Faster With ls_index Creating an Index for an Existing Backup Information on Recovery Searching Backup Media Multi-part Recovery Restricting Recovery Destinations by Role Information on Media Media Database Media Management Concepts How backup3G Tapes are Structured Media Set Scratch Media Media Balancing and Backup Cycling Media Life Cycle Media Support Tables Media Table Locking Information on Drives and Drive Pools About Drives and Drive Pools Drive Pools Physical and Logical Drives Drive and Device Locking Drive Operations and Load Operations Scheduling Backup Jobs to a Stacker Allocating Tapes to a Stacker Setting Up Backups How to Define a Backup Item How to Define a Backup Job To Define Information About a Backup Job To Define the Steps in a Backup Job To Maintain the Steps in a Backup Job To Set Up a Duty for a Backup Job Example: Define a Backup Job How to Define a Retention Period Initiating and Managing Backups Background and Interactive Jobs Queued Jobs How to Manage a Backup Job Backup Monitor How To Archive Files and Directories Recovering Data Recovery Options Recovering From Indexes Single-Volume Backups Multi-part Backups How To Recover Files From Backup To Recover Files From a Known Backup To Recover Using Search How to Recover backup3G To Recover backup3G Manually Layout of the Media Catalog Managing Removable Media How To Read and Maintain Media Details Adding a New Media Location Adding Backup Media Details Adding a New Media Type Recording a Media Maintenance History How To Read Backup Media Contents Search Media Contents for Base Directories Search Online Indexes for Backup Files Managing Drives Before You Use a Removable Media Drive How To Add A New Tape or Disk Drive How To Perform Tape Drive Operations Appendix A—Installing and Configuring Installing backup3G Configuring backup3G Removable Media Drives Add Media to the Media Library Generate Simple Backup Scheme Create Symbolic Links for Methods Run by FSremote Add backup3G Duties to duty3G Install/Deinstall Enterprise Backup Support Appendix B—Checking Job Status Codes Status of Active Backup and Recovery Jobs Status of Completed Backup and Recovery Jobs Appendix C—Backup Methods and Drivers Multi-part Backup Methods: How They Work Passing Options to a Backup Method backup3G Driver Scripts FScpio FSdump FSimage Appendix D—Defining Backup Methods How to Define Backup Methods Shell Variables in Backup Commands

Contents

Getting Started

Backup3G is a menu-driven application for automating backup, recovery and archiving tasks in an Open Systems data center. This guide is designed to help you use backup3G quickly and efficiently.


About this guide

This guide is the primary reference for setting up and using backup3G, and is designed to help users and administrators to use backup3G effectively. It can be divided into four sections:

Preliminary information
an overview of backup3G and how to get started.
Planning information
guidance on planning your backup, recovery, and media management strategies.
Background information
detailed descriptions of backup3G concepts, including backup types and drive and media management issues.
Step-by-step instructions
‘how-to’ topics for setting up, running and monitoring backups: recovering files; and performing related tasks such as adding details of new media and drives.


Who should use this guide

This guide is aimed at:


For More Information

The COSmanager User Guide explains how to install COSmanager products, including backup3G.

This guide describes how to configure backup3G, how to set up and maintain backups, how to manage media, how to set up and manage drives and load devices, and how to perform backups and recoveries.

Technical information about COSmanager commands can be found in the COSmanager Reference Guide. This contains manual pages for the Functional Toolset and application-specific commands, including commands used in backup3G.

COSmanager promotes a ‘policies and procedures’ approach to system management, including backup and media management. The guides, How to Implement Policy Based Management and a Sample Policy and Procedures Manual, are available without charge from your COSmanager distributor.


Management Overview

Backup3G facilitates a standard approach to backup and recovery and the management of media in multi-host, multi-vendor UNIX data centers, through:

Backup3G encourages sound management practice. For example, electronic labelling of backup media reduces the possibility of inadvertently overwriting good data. This is good practice and backup3G makes it simple to do.

All the information required to run comprehensive network backups is packaged in the backup job. There is no requirement for operators to memorize complex scheduling requirements or understand subtle platform-dependent variations in backup commands and devices.

The automation of routine backups saves time, frees up resources, and reduces the possibility of human error.


Benefits of backup3G

Backup3G provides a secure, policy-based backup and recovery environment for distributed open systems data centers. backup3G is part of the COSmanager family of system administration products.

For Data Center Managers backup3G facilitates the implementation of policy-driven backup strategies, providing excellent disaster-recovery capabilities. It provides mainframe-strength backup facilities across mixed platforms and vendors.

For Administrators backup3G automates routine and repetitive tasks, allowing delegation to less experienced staff; it also promotes efficient and flexible use of drives and load devices across the network.

For Auditors backup3G provides easy access to details of current backup procedures and facilitates the analysis of those procedures to see if backups are being carried out correctly and successfully.


Backup3G Modules

Scheduling and monitoring

Backup3G provides full support for automated and unattended backups. Backup jobs can be run regularly at a set time, or as required. If duty3G is installed, jobs can be defined as duties, with full support for complex scheduling and dependencies.

You can monitor the progress of a backup job from when it is submitted or scheduled until it finishes. The Backup Monitor alerts operators when some action is required, such as a manual tape load.

Backups can be held temporarily or cancelled, and failed jobs can be restarted from the step that caused the error. Full log files help you to check job status and diagnose any errors and warnings.


Backup configuration

You define backup jobs comprising one or more steps. Each step backs up a data object (filesystem, directory, or database) or performs some related task such as shutting down a database or printing a catalog of the backup.

You have fine control over what files are backed up. Backup3G supports full or ‘type 0’ backups and incremental (also known as differential) backups. You can specify lists of file names and patterns that are to be backed up or excluded from the backup.

Several backup methods are supplied, using standard UNIX backup formats such as cpio, tar, and dump. This means that you recover files manually even if backup3G itself is unavailable. You can easily customize these backup methods or add new ones based on your own scripts or third-party software.

A backup job can write to as many volumes as are required, allowing you to back up any amount of data. Individual steps can be split into several parts for greater efficiency.

Files can be backed up from UNIX and Windows hosts to any drive on the network.


Recovery

Fast recovery from a backup or archive is fully supported. You can recover selected files and directories, or the whole data object. An online index of backed-up files can be created, allowing fast and easy recovery of selected files from large backups. Operators can select files either from the index or by specifying a name or pattern, and be led through the recovery process by backup3G.


Media management

backup3G contains an integrated media database that supports:


Drive and media library support

backup3G supports all standard tape drives, from manually-loaded single-slot drives to multiple-drive automated tape libraries. backup3G also supports other types of media drive such as hard disks and CD drives. backup3G keeps a database of information about the capabilities of each drive type, so that backup and recovery jobs can address any particular drive in a device-independent way. Backup jobs can be assigned to specified drive or to a ‘drive pool’. At run-time, backup3G chooses the first available drive from the drive pool. backup3G supports a range of auto-loading devices, from tape stackers and jukeboxes to silos and automated tape libraries, through the Tape Library Management add-on module.


Access Security

Fine-grained capability controls allow users to be given limited ‘views’ of backup3G menus, enabling tight control to be maintained over access to all key functions. Each user has one or more roles that allow access to certain menus and options. backup3G includes a number of predefined roles, which you can add to and customize. For a list of the default capabilities assigned to each role, see Roles and Capabilities.


Technical Overview

This topic describes backup3G’s software environment:

Setting Up and Using backup3G

To install backup3G, you will need:

It is preferable to designate one host as the master backup host, and administer all backup jobs centrally. If you need to submit backups from different hosts it is important not to share drives and media—each backup3G master host must operate independently otherwise drive and media conflicts are likely. Note Detailed planning of your backup policies and procedures should take place prior to configuring backup3G. Your COSmanager distributor can assist.

Licensing

COSmanager uses a host-name-based licensing scheme. You supply information for each host on which backup3G and other applications are to be run. Your COSmanager distributor will give you a set of license keys that encode information about which applications can be run on each host, and for how long (that is, whether for a trial period or indefinitely).

Caution Do not change the license key or product string. This will invalidate your license. 

You will be prompted to enter the license key and product string during the installation procedure.

Installation and configuration

This provides an overview of the steps needed to install backup3G, including setting up an initial configuration. For more details, see Appendix A—Installing and Configuring.

  1. If COSmanager is not already installed, you must first install and configure the COSmanager application framework.
  2. Install backup3G from the distribution tape by running Application > Install from the COSmanager configuration > COSmanager

applications window. You will be prompted for the license key during this step.

  1. Set up an initial configuration for COSmanager by running a series of configuration tasks from the backup3G configuration menu. Through these tasks you define information about your computing environment and backup procedures.

Starting backup3G

From the COSmanager button bar (GUI)
Select the Backup button. The backup3G button bar is displayed.
From the COSmanager main menu (CUI)
Select the backup3G option. The backup3G main menu is displayed.
From the command line To launch the default version, enter
cos backup
To launch a different version, enter: cos backup -v version

Roles and Capabilities

Each COSmanager user has one or more roles. Each role identifies a responsibility or class of users in your organization, such as Manager or Operator. Within backup3G, roles are defined in terms of the access capabilities they grant. In turn, capabilities determine what menu options and actions a user can perform. Table 1 shows the default capabilities for each role.

What each capability does

Many functions, particularly those that modify system files and COSmanager tables, require specific access capabilities. Users who do not have the right capabilities will not be able to access or even view these functions.

Role backup media_mgmt monitor display drive recover recoverALL maintain
Manager * * * * * * * *
Admin * * * * * *
SeniorOp * * * * *
Operator * * * *
backup3G Capabilities
maintain
Modify tables unconditionally. Initially restricted to Manager role.
backup
Perform backup related tasks. This includes archiving and some media management
recover
Perform recovery related tasks. This includes building online indexes from backup jobs and some media management.
recoverALL
Overrides the action of the recovery restrictions. A user with this capability can recover to any directory on any host.
drive
Direct access to drive tasks such as drive operations, and loading and unloading media.
media_mgmt
Media management. User can move media to or from other offsite/onsite locations, and allocate volumes to load devices.
monitor
Keep track of backup, recovery and archive jobs.
display
Read only access to backup3G.

Controlling access to options on the backup3G button bar


Module Command Capability Needed

Archive files menu archive backup Schedule or run backups methtool runback backup OR maintain OR display Recovery from backups methtool msetview backup OR recover Media management methtool medview media_mgmt OR backup OR maintain OR display Removable drive management methtool drive backup OR maintain OR display Stacker management methtool stacker backup OR maintain OR display Monitor backup jobs/logfiles methtool jobstatus monitor OR backup


Controlling access to backup3G configuration options

Customizing user access

You can change what roles are assigned to a particular user, or change the capabilities that are assigned to all users with a particular role. Note Changes made to a user’s security profile don’t come into effect until the next time the user invokes COSmanager. Command Capability Needed Maintain backup jobs methtool backup maintain OR display Maintain drives and stackers methtool drive maintain OR display Access capabilities methtool appl_cap maintain Maintain tables methtool table maintain Initial configuration methtool confview super


To change Use Roles assigned to a user COSmanager configuration > Users and privileges > COSmanager users Capabilities assigned to a role backup3G configuration > Access capabilities


Software Environment

backup3G is installed under the home directory of the COSmanager account. All the files are owned by COSmanager and belong to the COSmanager group, except for a handful of database tables that are owned by root. backup3G’s log files are stored in the backlog directory in the system spool area, with the other COSmanager audit trails. COSmanager has a crontab entry to cycle all its audit trails automatically. COSmanager sets a number of variables in the user’s environment when they start backup3G. These mostly define directory names and the user’s access capabilities. You can check your environment by exiting to a shell from within backup3G and running env.

Startup procedure

When you launch backup3G from COSmanager or through the cos backup command, the startup procedure performs the following steps:

User Interface

The user interface to all COSmanager applications is provided through a series of reusable software tools known collectively as The Functional Toolset. Both graphical (GUI) and character (CUI) mode interfaces are provided. As there are only a handful of different types of screen, the interface is very easy to learn.

The GUI mode features a Motif-style ‘look and feel’. The GUI mode can also be used from a PC running Windows 3.11, Windows 95, or Windows NT, without the need for X emulation software.

The CUI mode is intended for users who access COSmanager from a character terminal or via terminal emulation from a PC. It features a full-screen interface with support for function keys and pop-up windows.

Keyboard traversal in the GUI interface is consistent with the CUI version. This allows users to swap between X displays, Windows PCs, and character terminals, with minimal retraining and without loss of productivity. The user interface is described in detail in the COSmanager User Guide.

Where to from here

Information on Backup Jobs

Information on Recovery

Information on Media

Information on Drives and Drive Pools

Setting Up Backup

Initiating and Managing Backups

Recovering Data

Managing Removable Media

Managing Drives

Appendices