netbackup backup, archive, and restore getting started · pdf filenetbackup™ backup,...

28
NetBackup Backup, Archive, and Restore Getting Started Guide UNIX, Windows, and Linux Release 6.5

Upload: lamkien

Post on 06-Mar-2018

253 views

Category:

Documents


4 download

TRANSCRIPT

NetBackup™

Backup, Archive, and Restore Getting Started Guide

UNIX, Windows, and Linux

Release 6.5

Veritas NetBackupBackup, Archive, and Restore Getting Started Guide

Copyright © 2007 Symantec Corporation. All rights reserved.

NetBackup 6.5

Symantec, the Symantec logo, and NetBackup are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners.

Portions of this software are derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm. Copyright 1991-92, RSA Data Security, Inc. Created 1991. All rights reserved.

The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Symantec Corporation and its licensors, if any.

THIS DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID, SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.

The Licensed Software and Documentation are deemed to be “commercial computer software” and “commercial computer software documentation” as defined in FAR Sections 12.212 and DFARS Section 227.7202.

Symantec Corporation20330 Stevens Creek Blvd.Cupertino, CA 95014www.symantec.com

Printed in the United States of America.

Third-party legal notices

Third-party software may be recommended, distributed, embedded, or bundled with this Symantec product. Such third-party software is licensed separately by its copyright holder. All third-party copyrights associated with this product are listed in the accompanying release notes.

Licensing and registrationVeritas NetBackup is a licensed product. See the NetBackup Installation Guide for license installation instructions.

Technical supportFor technical assistance, visit http://entsupport.symantec.com and select phone or email support. Use the Knowledge Base search feature to access resources such as TechNotes, product alerts, software downloads, hardware compatibility lists, and our customer email notification service.

Contents

Chapter 1 Introduction to Backup, Archive, and RestoreOverview .................................................................................................................. 7Installing and configuring .................................................................................... 8Finding details in online help .............................................................................. 8

Chapter 2 Getting started with UNIX and LinuxSetting up your window manager .....................................................................11

Common Desktop Environment (CDE) set up ..........................................11Motif set up .........................................12

Starting Backup, Archive, and Restore .............................................................12Backing up or archiving files, directories, and partitions .............................12Restoring files, directories, and partitions ......................................................16Starting from a Windows system ......................................................................18Other UNIX interfaces .........................................................................................19

Chapter 3 Getting started with WindowsStarting Backup, Archive, and Restore .............................................................21Backing up or archiving by using Backup, Archive, and Restore .................22 ................................................................................................................................24Backing up by using Windows Explorer ...........................................................24Backing up by using NetBackup Bin .................................................................24Restoring files, folders, and volumes ................................................................26

6

Chapter

1

Introduction to Backup, Archive, and Restore

This guide provides information about basic user-directed back up and restore procedures for new users of NetBackup.

OverviewNetBackup lets you back up, archive, and restore files, folders or directories, and volumes or partitions that reside on your computer. The computer that needs the backup or restore is the client; the computer that manages the backup and retrieval of the data is the server.

Backups and Archives

Backup, Archive, and Restore is your interface to the NetBackup client software on your computer. When you start a backup or an archive operation, your computer’s client software sends the data to be backed up to the NetBackup server. The server then writes the data to a storage device.

Restores

When you start a restore operation, the client software on your computer requests the data from the NetBackup server. The server then sends the data to the client so it can be restored.

Policies

The NetBackup administrator configures the policies that define the rules that NetBackup follows when it backs up clients. The policies include schedules for automatic, unattended backups of the NetBackup clients (server-directed backups). Policies also define when you can back up and restore files manually (user-directed operations). For example, the time range in which you can perform user-directed operations (your user window) is from 8 am to 6 pm. You

8 Introduction to Backup, Archive, and RestoreInstalling and configuring

cannot back up or archive at any other time (although, you can restore at any time).

Backup images

NetBackup stores all of the backup job files (either server-directed or user-directed) in a backup image. When you restore files, you select the items to restore from a backup image or from multiple backup images. Backup images can expire after a certain amount of time (configured by your NetBackup administrator). If a backup image expires, you cannot see or restore its files.

Installing and configuringThe NetBackup administrator installs and configures NetBackup, which includes the following:

■ Installs and configures the client software and the Backup, Archive, and Restore interface on the computers that are backed up in your computer environment.

■ Configures the client software to work with the NetBackup servers in your environment.

If user-directed operations are allowed in your NetBackup environment, you should not have to configure Backup, Archive, and Restore so it functions properly.

The NetBackup administrator normally configures and changes Backup, Archive, and Restore. If you have to change the configuration, consult your NetBackup administrator.

Finding details in online helpThis guide provides basic backup, archive, and restore procedures. For more information, see the help. The help includes the following:

■ Information about restore destinations, restore options, and restoring from specific dates

■ Procedures for other restore operations:

■ Restoring from raw partition (UNIX) and disk image (Windows) backups

■ Restoring from true image backups

■ Restoring from Veritas Backup Exec backups

■ Restoring by proxy (Windows)

■ Redirecting restores to different clients (administrators only)

9Introduction to Backup, Archive, and RestoreFinding details in online help

■ Procedures to locate the items you want to restore

■ Procedures to specify other backup servers (if allowed in your environment)

■ A reference that describes windows, menus, and dialog boxes.

You can open help from the Help menu or from Help buttons in dialog boxes.

10 Introduction to Backup, Archive, and RestoreFinding details in online help

Chapter

2

Getting started with UNIX and Linux

This section describes how to start Backup, Archive, and Restore and then back up and restore files on UNIX, Linux, and Macintosh OS X systems. On UNIX, Linux, and Macintosh OS X systems, Backup, Archive, and Restore is a Java-based, graphical user interface.

■ “Setting up your window manager” on page 11

■ “Starting Backup, Archive, and Restore” on page 12

■ “Backing up or archiving files, directories, and partitions” on page 13

■ “Starting from a Windows system” on page 26

■ “Other UNIX interfaces” on page 26

Setting up your window managerSet your window manager so windows become active only when you click inside the windows. Do not enable auto focus, which is when windows become active when you move the mouse pointer over them. The NetBackup Java interface does not run properly with auto focus enabled.

Common Desktop Environment (CDE) set upThe following explains how to set up a CDE window manager, which is the preferred window manager for NetBackup Java applications.

To configure CDE for backup, archive, and restore

1 On the front panel in the CDE window, click the Style Manager control icon.

2 On the Style Manager toolbar, click the Window control icon.

12 Getting started with UNIX and LinuxStarting Backup, Archive, and Restore

3 In the Style Manager - Window dialog box, click the Click In Window To Make Active button.

4 Click OK.

5 Click OK when asked to Restart the Workspace Manager.

Motif set upWhen you use the Motif window manager, set the Mwm*keyboardFocusPolicy X resource as follows:

Mwm*keyboardFocusPolicy:explicit

Starting Backup, Archive, and RestoreYou can use Backup, Archive, and Restore to log in to a NetBackup client on a UNIX system where you have a user account. From Backup, Archive, and Restore you can perform back ups, archives, and restores on that client.

To start backup, archive, and restore

1 Log in to the computer where you intend to start Backup, Archive, and Restore.

2 Start Backup, Archive, and Restore by entering the following:/usr/openv/netbackup/bin/jbpSA &

3 In the Login dialog box, enter the name of the client where you want to perform the backup, archive, or restore.

You must have a valid user account on that client and have access to that client.

4 Enter your user name.

5 Enter your password.

6 Click Login.

For a description of the Backup, Archive, and Restore interface and directions about how to use it, see the help. For information about jbpSA command options, see the jbpSA(1) man page.

Backing up or archiving files, directories, and partitions

Use the following procedure to back up or archive files, directories, and partitions.

13Getting started with UNIX and LinuxBacking up or archiving files, directories, and partitions

A back up copies the selected items. An archive copies the selected items and then deletes the items from the source drive after they are backed up to the destination drive.

For more information about how to use Backup, Archive, and Restore, see the online help.

To back up by using Backup, Archive, and Restore

1 Click the Backup Files tab.

The title bar of the tab displays the names of the server, source and destination clients, and policy that NetBackup used for the operation.

2 Select the items that you want to back up.

To select an item, check the check box to the left of the item. A check mark indicates that an item is selected; a diagonal slash mark indicates that only some items within a folder or directory are selected. You can select items in the All Folders or Directory Structure pane or in the Contents pane.

3 Click Backup.

14 Getting started with UNIX and LinuxBacking up or archiving files, directories, and partitions

The Backup Files dialog box appears.

4 Select or specify any of the following options:

■ NetBackup Server

To change which NetBackup server performs the backup operation, select a different server from the drop-down list. Generally, you do not need to specify a different master server. If you have the option to send your backups to more than one master server, ensure that you specify the correct one.

■ Archive files (delete files after successful backup)

To delete the items automatically from the source drive after they back up successfully, select this option.

■ Keyword phrase to associate with this backup or archive (optional)

To link a keyword phrase to the backup, enter a keyword phrase. When you restore files, you can search by keyword for the items that were backed up.

■ Use default progress log filename

15Getting started with UNIX and LinuxBacking up or archiving files, directories, and partitions

To write the backup progress messages to a log file other than the default, deselect Use default progress log filename. Then enter the name of the alternative progress log in the Progress log filename field.

5 Click Start Backup.

6 In the dialog box that appears, click Yes to open the Task Progress tab to view the progress of the operation.

The operation may take a few minutes to complete. You can close Backup, Archive, and Restore after starting a backup operation. NetBackup continues the backup operation in the background.

16 Getting started with UNIX and LinuxRestoring files, directories, and partitions

Restoring files, directories, and partitionsUse the following procedure to restore from a normal backup or archived backup. A normal backup leaves the original files on the source drive. An archived backup deletes the files from the source drive after it successfully backs up the files to the destination drive. Most backups are normal backups.

For other types of restores, see their instructions in the online help.

To restore by using Backup, Archive, and Restore

1 Click the Restore Files tab.

The title bar of the window tab displays the server names, source and destination clients, and policy that NetBackup used for the operation.

2 Select Normal Backups or Archived Backups from the Restore Type list box (depending on whether you restore from a normal backup or an archive).

3 Click View > Refresh.

The items you can restore appear in the Contents pane.

4 Select items to restore.

17Getting started with UNIX and LinuxRestoring files, directories, and partitions

To select an item, click the check box to the left of the item. A check mark indicates that you have selected an item. A diagonal slash mark indicates that you selected only a subset of files within a directory or folder. You can select files in the Directory Structure pane or the Contents pane.

5 To preview a list of the media that NetBackup needs to restore the files, click Preview.

If the restore requires the NetBackup images that reside on disk storage units, no media is listed in the preview.

Click OK to close the dialog box.

6 Click Restore.

The items that you marked for restore appear in the dialog box.

7 Select a restore destination:

■ Restore everything to its original location

18 Getting started with UNIX and LinuxStarting from a Windows system

■ Restore everything to a different location

■ Restore individual directories and files to different locations

The default selection is Restore everything to its original location.

8 Select restore options:

■ Overwrite the existing file

■ Restore directories without crossing mount points

■ Restore without access control attributes

■ Rename hard links

■ Rename soft links

9 You can write the progress messages to a log file other than the default. Remove the check next to Use default progress log filename and then enter the name of the alternative progress log.

10 Click Start Restore.

In the Task Progress tab that appears, click Yes to view the progress of the restore.

The restore may take a few minutes to complete. After you start a restore operation, you can close Backup, Archive, and Restore and perform other tasks. NetBackup continues the restore operation in the background.

Starting from a Windows systemIf you use the Java Windows Administration Console on a Microsoft Windows system, you can run the Java Backup, Archive, and Restore interface on that system. This interface lets you log in to a NetBackup UNIX or Linux client to perform user-directed operations on that client. You must use the Java Windows Administration Console to log in to a UNIX or Linux system; you cannot log in to a Windows system.

To start the Windows administration Console

1 On the Windows Start menu, click Programs > Veritas NetBackup > NetBackup - Java Version 6.0.

The Login dialog appears.

2 Enter the name of the client where you want to perform the backup, archive, or restore.

You must have a valid user account on that client and have access to that client.

3 Enter your user name.

4 Enter your password.

19Getting started with UNIX and LinuxOther UNIX interfaces

5 Click Login.

Other UNIX interfacesNetBackup provides several other interfaces to the client software on UNIX systems:

■ Menu user interface. You can use the menu interface on any terminal that can connect to a client system. The bp command starts the menu interface program. For information about how to use the menu user interface, see the bp(1) man page and the help in the interface.

■ Commands. Commands let you perform backup, archive, restore operations from a shell prompt. For command information, see the NetBackup Commands for UNIX.

You can perform user-directed operations through any of these interfaces. However, Symantec recommends that you use the Backup, Archive, and Restore interface for user-directed operations.

20 Getting started with UNIX and LinuxOther UNIX interfaces

Chapter

3

Getting started with Windows

This section provides information about how to start Backup, Archive, and Restore and perform basic backup and restore procedures on Microsoft Windows systems.

■ “Starting Backup, Archive, and Restore” on page 21

■ “Backing up or archiving by using Backup, Archive, and Restore” on page 22

■ “Backing up by using Windows Explorer” on page 24

■ “Backing up by using NetBackup Bin” on page 24

■ “Restoring files, folders, and volumes” on page 26

Starting Backup, Archive, and Restore◆ On the Windows Start menu, click Programs > Veritas NetBackup > Backup,

Archive, and Restore.

If NetBackup Access Management is used to control access to your NetBackup environment, you may be required to enter a user name, password, and domain information.

For a description of the Backup, Archive, and Restore interface and directions about how to use it, see the help.

22 Getting started with WindowsBacking up or archiving by using Backup, Archive, and Restore

Backing up or archiving by using Backup, Archive, and Restore

Use the following procedure to back up or archive files, folders, volumes, registry keys, Windows system state, Windows system service, and Windows shadow copy components.

A back up copies the selected items. An archive copies the selected items and then deletes the items from the source drive after they are backed up to the destination drive.

For more information about how to use Backup, Archive, and Restore, see the online help.

To back up by using Backup, Archive, and Restore

1 On the File menu, click Select Files and Folders to Backup to open a Backup window.

The title bar of the window displays the names of the server and client that NetBackup used for the operation.

2 Select the items that you want to back up.

23Getting started with WindowsBacking up or archiving by using Backup, Archive, and Restore

To select an item, check the check box to the left of the item. A check mark indicates that an item is selected; a diagonal slash mark indicates that only some items within a folder or directory are selected. You can select items in the All Folders or Directory Structure pane or in the Contents pane.

3 On the Actions menu, click Backup.

The Specify Backup Options dialog box appears.

4 Select or specify any of the following options:

■ NetBackup Server

To change which NetBackup server performs the backup operation, select a different server from the drop-down list. Generally, you do not need to specify a different master server. If you have the option to send your backups to more than one master server, ensure that you specify the correct one.

■ Archive files (delete files after successful backup)

To delete the items automatically from the source drive after they back up successfully, select this option.

■ Keyword phrase to associate with this backup or archive (optional)

To link a keyword phrase to the backup, enter a keyword phrase. When you restore files, you can search by keyword for the items that were backed up.

5 Click Start Backup.

6 In the dialog box that appears, click Yes to open the View Status dialog box to view the progress of the operation.

24 Getting started with WindowsBacking up by using Windows Explorer

The operation may take a few minutes to complete. You can close Backup, Archive, and Restore after starting a backup operation. NetBackup continues the backup operation in the background.

META Notes:

Backing up by using Windows ExplorerIf your system is configured to use NetBackup Explorer Extensions, you can use Windows Explorer to back up files, folders, or volumes.

Note: To back up files using Windows Explorer, NetBackup Explorer Extensions must be installed in your NetBackup environment and must be enabled. To enable this feature, click NetBackup Explorer Extensions on the Backup, Archive, and Restore File menu.

To back up by using Windows Explorer

1 Open Windows Explorer. (On the Windows Start menu, click Programs > Accessories > Windows Explorer.)

2 Find and select the file or folder you want to back up and right-click it.

3 Click Backup Now.

4 In the dialog box, click Yes to begin the backup operation.

To show the progress of the backup operation, click Automatically Show Progress Log before you begin the backup operation.

Backing up by using NetBackup BinIf your system is configured to use NetBackup Explorer Extensions, you can use NetBackup Bin to back up files. NetBackup Bin is a folder where you can place the files that you want to back up. A Netbackup Bin icon on your desktop represents the folder, as follows:

25Getting started with WindowsBacking up by using NetBackup Bin

Note: To use NetBackup Bin, NetBackup Explorer Extensions must be installed in your NetBackup environment and must be enabled. To enable this feature, click NetBackup Explorer Extensions from the Backup, Archive, and Restore File menu.

To back up a file using NetBackup Bin

1 Open Windows Explorer. (On the Windows Start menu, click Programs > Accessories > Windows Explorer.)

2 Find and select the file or folder you want to back up.

3 Drag the file to the NetBackup Bin icon on your desktop or to the NetBackup Bin folder in Windows Explorer.

4 Right-click the NetBackup Bin icon on your desktop or the NetBackup Bin folder in Windows Explorer and click Backup Now.

5 In the dialog box, click Yes to begin the backup operation.

To show the progress of the backup operation, click Automatically Show Progress Log before you begin the backup operation.

To view the files in the NetBackup Bin folder, double-click the NetBackup Bin icon on your desktop. You also can right-click the NetBackup Bin folder in Windows Explorer. Then click Open.

26 Getting started with WindowsRestoring files, folders, and volumes

Restoring files, folders, and volumesUse the following procedure to restore from a normal backup or archived backup. A normal backup leaves the original files on the source drive. An archived backup deletes the files from the source drive after it successfully backs up the files to the destination drive. Most backups are normal backups.

For other types of restores, see their instructions in the online help.

To restore by using Backup, Archive, and Restore

1 On the File menu, click Select Files and Folders to Restore.

2 Click either from Normal Backup or from Archived Backup, depending on whether you want to restore from a normal backup or an archived backup.

There may be a delay while NetBackup reads information about the backups and builds the list of files you can restore.

The title bar of the window displays the server and the client names that NetBackup used for the operation.

3 Select items to restore.

27Getting started with WindowsRestoring files, folders, and volumes

To select an item, click the check box to the left of the item. A check mark indicates that you have selected an item. A diagonal slash mark indicates that you selected only a subset of files within a directory or folder. You can select files in the Directory Structure pane or the Contents pane.

4 To preview a list of the media that NetBackup needs to perform the restore, click Actions > Preview Media.

If the restore requires the NetBackup images that reside on disk storage units, no media is listed in the preview.

Click OK to close the dialog box.

5 On the Actions menu, click Start Restore of Marked Files.

The items that you marked for restore appear in the dialog box.

6 Select a restore destination:

■ Restore everything to its original location

■ Restore everything to a different location

■ Restore individual directories and files to different locations

The default selection is Restore everything to its original location.

7 Select restore options:

■ Restore without access control attributes

■ Overwrite the existing file

■ Restore the file by using a temporary filename

28 Getting started with WindowsRestoring files, folders, and volumes

■ Do no restore the file

The default selection is Do not restore the file.

8 Click Start Restore.

9 In the View Status dialog box that appears, click Yes to view the progress of the restore.

The restore may take a few minutes to complete. After you start a restore operation, you can close Backup, Archive, and Restore and perform other tasks. NetBackup continues the restore operation in the background.