Oh no, Backup - New Information!

NetBackup Intro

Once again the backup / restore method for bama has changed. We are using a different suite of software ("NetBackup") on bama to store backups in a new tape library with eight tape drives shared among several servers. The new system has reduced backup times by another factor of 2, so that most nights bama can be backed up in an hour. Along with this comes a change in how users will recover lost files. The old methods, recover or nwrecover, are no longer available.

We keep each night's backup for two months. For weekly full backups, made on Friday nights (running midnight - Saturday morning), this includes all files as they existed at the time of backup, regardless of whether they are later changed or deleted. Daily incremental backups on all other nights include only files added or changed since the previous backup. As with the old software, a deleted file must have been on the system for at least one day to be included in a backup.

Individual users can run the program to restore files they have changed or deleted. You can restore individual files, subdirectory trees, and search through multiple backup copies of the same file reaching back over several dates. There are two parts to the backup system. The first is a database that lists all backed-up files along with the backup dates. The second is the actual tape library that holds the files. When you ask to restore a file it is first looked up in the database. When the software receives a go-ahead to restore the file, a command is issued to the tape device to mount the tape and the restore continues.

Command-line restore

From the Unix command prompt type bp -r. The program will display a text-based menu screen (1) in your terminal window. At this point you can press h for the online help, but the important parts are described here. You will need to set a few settings first, then search for backed-up files and select some to restore, finally initiating the restore and exiting the bp program. Once begun, the restore will continue in the background (you can view progress through an optional log file).

A restore may take a matter of minutes or hours to complete, depending on the files selected, the arrangement of backups on tape, other activity of the tape library, and so on. To keep track of the progress of the restore, you can periodically read the log file:

  $ tail bplog.rest.###
  Restore started 07/25/2007 16:11:57

  16:11:58 (9060.xxx) Restore job id 9060 will require 1 image.
  16:11:58 (9060.xxx) Media id E50384 is needed for the restore.

  16:12:33 (9060.001) Restoring from image created Sat Jul 07 01:24:10 2007
  16:12:35 (9060.001) TAR STARTED
  16:12:40 (9060.001) INF - Waiting for mount of media id E50384 on server
                      bama.ua.edu for reading.

To keep the log file open, displaying new output whenever it appears, you can use

  $ tail -f bplog.rest.###

When the restore is completed, the log file should include a status message to that effect. Press ctrl + c to stop watching the log file.

Xwindows restore

If you are running Xwindows software on your PC (or Mac) when you connect to bama, then you can run the Xwindows NetBackup software. Use your usual method to enable the display of Xwindows programs (Mac users may need to change X11 forwarding options). Then type jbpSA to start the Xwindows (Java) version of NetBackup. The program will prompt you to log in. Your bama account name and password are required. This program also has online help available (the sections on restoring "Normal Backups" and finding items to restore are the most useful).

Make sure you are viewing the "Restore Files" tab of the window. Refresh the listing (in the View menu) in order to see files and directories available to restore. You may need to adjust the date range or other options, or use the search tool to locate files. By default only one version of each file is shown: the most recent backup of the file within the date range. To see multiple versions, change this option in the View menu. As with the old software, you "mark" the files or directories you want to restore by clicking in the box next to the name. Selected files or directories are marked with check marks, and partially selected directory structures are marked with slashes. When you are ready to restore, click the "Restore..." button at lower right.

The "Restore Marked Files" dialog appears. This dialog lets you change the destination path for all of the restored files, or set individual destinations for each restored file. We strongly recommend using one of these options; see the WARNING about destination paths above. Other options in the dialog can usually be left at default settings. Click the "Start Restore" button to initiate the restore. It will run in the background, and you can view progress in the "Task Progress" tab of the jbpSA window.

Man pages and online help are available for both of these commands.

Footnote

1 - Lower-level Unix commands are available to do restores entirely from the command line, but are not supported. See man bprestore.

 

© 2000,2007, The University of Alabama. The information included here is for the University of Alabama central computing facility as it was configured on the document date. It may or may not apply to other Unix systems.

 

#