cancel
Showing results for 
Search instead for 
Did you mean: 

Need to report files backed up by netbackup for a client

Sid1987
Level 6
Certified

Hi Guys,

 

 I need to report my client about what all files and directories have been backed up. I tried with bplist, but it only shows the files which were backed up by NBU for a client. It doesn't shows size, Whereas in TSM shows a pretty decent report in tabular form for it from command line and is sent to the client. And I am pretty sure NBU also has a command or may be appropriate parameters with bplist to give that kind of report. Please suggest

 

Thanks

Sid

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

bplist with enough switches shows file size: you need to add '-l'.

I have just tested with the following command (just specified 2 level to limit output):

bplist -C <client-name> -s 07/04/2013 -l -R 2 / >/tmp/list.txt

Sample of output in /tmp/list.txt:

drwxr-xr-x root      root                0 Jul 04 11:58 /log/
-rw-r--r-- root      root         85772149 Jul 04 14:51 /log/app_change_control.log
-rw-r--r-- root      root           824739 Jul 04 14:48 /log/app_debug.log
drwxr-xr-x root      root                0 Jul 02 14:32 /log/app_vxul/
 

 

View solution in original post

4 REPLIES 4

Andy_Welburn
Level 6

You could try bpflist as you've already tried bplist you know how complicated the syntax can be so beware!

http://www.symantec.com/business/support/index?page=content&id=TECH34317

'Working' example:

https://www-secure.symantec.com/connect/forums/nbu-7103-find-out-which-image-contain-which-backup-selection#comment-7207291

# bpflist -help
bpflist: [-l | -L | -U] [-v]
    [-M master_server...]
    [-d mm/dd/yyyy HH:MM:SS][-e mm/dd/yyyy HH:MM:SS]
    [-ut <unixtime for start and end date>]
    [-st sched_type]
    [-policy policy_name][-client client_name]
    [-keyword "keyword phrase"][-pattern fullpath]
    [-pt policy_type]
    [-user name][-group name][-raw mode]
    [-backupid name][-force_print]
    [-psep path_separator_character]
    [-malgo match_algorithm (0 1 2 or 3)]
    [-rl recursion_level (0..999)]
    [-option <list of:
        NONE ONE_PASS NO_HSHAKE GET_ALL_FILES
        INCLUDE_TIR ONLY_TIR ONLY_DIRS FILESYSTEM_ONLY
        ONE_CONNECT INCLUDE_RAW_INCR INCLUDE_BITMAP INCLUDE_FSMAP
        INCLUDE_EDI IGNORE_CASE INCLUDE_EFI>]

bpflist: -complete -policy policy_name [-client client_name][-st sched_type][-bt <unixtime>]

       Valid values for sched_type:
           FULL, INCR, CINC, UBAK, UARC, ANY, SCHED, USER, NOT_ARCHIVE

       Valid values for policy_type:
           Standard,  Oracle,  NetWare,  MS-Windows-NT,
           OS/2,  NDMP,  AFS,  DataStore,  NBU-Catalog,
           Generic,  PureDisk-Export

Marianne
Level 6
Partner    VIP    Accredited Certified

bplist with enough switches shows file size: you need to add '-l'.

I have just tested with the following command (just specified 2 level to limit output):

bplist -C <client-name> -s 07/04/2013 -l -R 2 / >/tmp/list.txt

Sample of output in /tmp/list.txt:

drwxr-xr-x root      root                0 Jul 04 11:58 /log/
-rw-r--r-- root      root         85772149 Jul 04 14:51 /log/app_change_control.log
-rw-r--r-- root      root           824739 Jul 04 14:48 /log/app_debug.log
drwxr-xr-x root      root                0 Jul 02 14:32 /log/app_vxul/
 

 

Andy_Welburn
Level 6

Shows how out of touch I've become, looking for alternatives to something that already works!!

-l

          Lists in a long format that contain  mode,  owner,
          group,  size  in bytes, and time of last modifica-
          tion for each file (see the EXAMPLES section). The
          list  shows the mode of each file as 10 characters
          that represent the standard UNIX file permissions.

Sid1987
Level 6
Certified

Thanks guys.

 

-l option actually did what was required from the client.

 

Thanks

Sid