Create a Catalog List with bpcatlist
The bpcatlist command queries the catalog data, then lists portions of the catalog based on selected parameters, such as date, client, policy, schedule name, backup ID, the age of the backup image, or the date range of the backup image. bpcatlist outputs the formatted image summary information of matched images to standard output.
The other catalog archiving commands, bpcatarc, bpcatrm, and bpcatres, all depend on input from bpcatlist via a piped command.
For example, to archive (backup and delete) all of the .f files created prior to January 1, 2000, the following would be entered:
# bpcatlist -client all -before Jan 1 2000 | bpcatarc | bpcatrm
bpcatlist is also used to provide status information. For each catalog, it lists the following information:
- Backup ID (Backupid)
- Backup date (Backup Date)
- Catalog archive ID (Catarcid). After an .f file is successfully backed up, a catalog archive ID is entered into the catarcid field in the image file.
- Online status (S), indicating if the catalog is online (1) or deleted from the online media and stored on other media (0)
- Compressed status (C), indicating if the catalog is compressed (1) or not compressed (0)
- Catalog file name (Files file)
The following is an example of the bpcatlist output, showing all of the backups for client alpha since October 23:
# bpcatlist -client alpha -since Oct 23
Backupid Backup Date ...Catarcid S C Files file
alpha_0972380832 Oct 24 10:47:12 2000 ... 973187218 1 0 alpha_0972380832_UBAK.f
alpha_0972336776 Oct 23 22:32:56 2000 ... 973187218 1 0 alpha_0972336776_FULL.f
alpha_0972327197 Oct 23 19:53:17 2000 ... 973187218 1 0 alpha_0972327197_UBAK.f
For detailed information on bpcatlist, see bpcatlist in the NetBackup Commands for UNIX Guide.
|