07-16-2013 06:02 AM
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
Solved! Go to Solution.
07-16-2013 06:27 AM
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/
07-16-2013 06:23 AM
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
07-16-2013 06:27 AM
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/
07-16-2013 06:30 AM
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.
07-24-2013 08:05 AM
Thanks guys.
-l option actually did what was required from the client.
Thanks
Sid