How to list files backed up using the bplist or bpflist command

Article: 100003944
Last Published: 2019-01-23
Ratings: 5 2
Product(s): NetBackup & Alta Data Protection

Problem

How to list files backed up using the bplist or bpflist command

Solution

The examples below use the time period / ctime to cover the two backups with backup id's

womble_1291023678     ( Mon Nov 29 09:41:18 2010 )
womble_1291024478     ( Mon Nov 29 09:54:38 2010 )


This first example uses the bplist command with a start and end date specified.  
The -R option specifies the 'recursive' level, how many file systems/directories to drill down.
The -k option specifies a specific policy

The -t option specifies policy_type

0 = Standard

4 = Oracle

6 = Informix-On-BAR

7 = Sybase

8 = MS-SharePoint

11 = DataTools-SQL-BackTrack

13 = MS-Windows

15 = MS-SQL-Server

16 = MS-Exchange-Server

17 = SAP

18 = DB2

19 = NDMP

20 = FlashBackup

21 = Split-Mirror

24 = DataStore ( PostgreSQL, MySQL, SQLite, Netezza ...)

25 = Lotus Notes

29 = FlashBackup-Windows

35 = NBU-Catalog

39 = Enterprise-Vault

40 = VMware

41 = Hyper-V

44 = BigData

For further information on bplist options please refer to the man page, or commands guide.

bplist -R 99 -C womble -l -k womble_disk -t 0 -s 11/29/2010 09:00:00 -e 11/29/2010 09:45:00 -I "/"
drwxr-xr-x root      root                0 Nov 27 09:28 /
drwxr-xr-x root      root                0 Nov 24 11:03 /netbackup/
drwxr-xr-x root      root                0 Nov 20 01:33 /netbackup/testdata/
-r--r--r-- root      root              400 Nov 20 01:09 /netbackup/testdata/file1
-r--r--r-- root      root              400 Nov 20 01:09 /netbackup/testdata/file2
-r--r--r-- root      root              400 Nov 20 01:22 /netbackup/testdata/file3
-r--r--r-- root      root              400 Nov 20 01:33 /netbackup/testdata/file4


The following  example is similar  by using the -X option, it allows the dates (-s / -e) to be specified as a 'ctime' which makes the line shorter and easier to read.

bplist -R 99 -C womble -l -k womble_disk -t 0 -X -s 1291023000 -e 1291025000 -I "/"
drwxr-xr-x root      root                0 Nov 27 09:28 /
drwxr-xr-x root      root                0 Nov 24 11:03 /netbackup/
drwxr-xr-x root      root                0 Nov 29 09:54 /netbackup/testdata/
-r--r--r-- root      root              400 Nov 29 09:53 /netbackup/testdata/newfile1
-r--r--r-- root      root              400 Nov 29 09:53 /netbackup/testdata/newfile2
-r--r--r-- root      root              400 Nov 29 09:54 /netbackup/testdata/newfile3
-r--r--r-- root      root              400 Nov 29 09:54 /netbackup/testdata/newfile4
drwxr-xr-x root      root                0 Nov 27 09:28 /
drwxr-xr-x root      root                0 Nov 24 11:03 /netbackup/
drwxr-xr-x root      root                0 Nov 20 01:33 /netbackup/testdata/
-r--r--r-- root      root              400 Nov 20 01:09 /netbackup/testdata/file1
-r--r--r-- root      root              400 Nov 20 01:09 /netbackup/testdata/file2
-r--r--r-- root      root              400 Nov 20 01:22 /netbackup/testdata/file3
-r--r--r-- root      root              400 Nov 20 01:33 /netbackup/testdata/file4


The bpflist command has options that provides a similar output. 

For further information on bpflist options please refer to the man page, or commands guide.

This example uses the 'ctime' from the backup ID to display only the files backed up at that instant.

bpflist -ut 1291024478 -client womble -rl 999 -backupid womble_1291024478 -option GET_ALL_FILES
FILES 8 0          0 1291024478 0 womble womble_disk womble_1291024478 - *NULL* 5 0 unknown unknown 0 0 *NULL*
1 0 20 50 2 1 0 0 257 /netbackup/testdata/ 16877 root root 0 1291024444 1291024444 1291024444
2 0 28 52 3 1 0 0 257 /netbackup/testdata/newfile1 33060 root root 400 1291024436 1291024436 1291024436
3 0 28 52 5 1 0 0 257 /netbackup/testdata/newfile2 33060 root root 400 1291024439 1291024439 1291024439
4 0 28 52 7 1 0 0 257 /netbackup/testdata/newfile3 33060 root root 400 1291024442 1291024442 1291024442
5 0 28 52 9 1 0 0 257 /netbackup/testdata/newfile4 33060 root root 400 1291024444 1291024444 1291024444

Applies To

NetBackup 8.x / 7.x

Was this content helpful?