Have you ever asked yourself what have been backed up in a Data Protector job? In the internal database, within sessions you only see the objects done, however no information regarding backed up files and folders. You normally would see the files and folders when browsing to restore context or when using “restore by query” function in Data Protector.
With a simple command you now can retrieve the content of the backup done. The command queries the catalog of the internal database for a given session ID and object.
The command I used: omnidb -winfs server.demo.local:/F "server.demo.local [/F]" -session 2013/04/02-4 -catalog
.
The output (cutted) is displayed below.
Update: If your session spawns one media only you might also use the command omnimm -catalog < medium >
which delivers a similiar output. In GUI you could use the function “list from media” in restore context.
Protection Owner Group Size Time Path =============================================================================== d----w---- -2 nogroup 0 03.12.2012 11:04:11 /Install/NB/8540p/SWSetup/ ----r----- -2 nogroup 604672 27.04.2012 13:09:13 /Install/NB/8540p/sp48109.exe ----r----- -2 nogroup 266051536 27.04.2012 13:16:44 /Install/NB/8540p/sp53191.exe ----r----- -2 nogroup 8638840 27.04.2012 13:14:17 /Install/NB/8540p/sp53375.exe ----r----- -2 nogroup 23839856 27.04.2012 13:14:48 /Install/NB/8540p/sp53394.exe ----r----- -2 nogroup 4019352 27.04.2012 13:09:07 /Install/NB/8540p/sp53694.exe ----r----- -2 nogroup 9721920 27.04.2012 13:14:19 /Install/NB/8540p/sp53795.exe ----r----- -2 nogroup 8111712 27.04.2012 13:05:46 /Install/NB/8540p/sp53806.exe ----r----- -2 nogroup 28550392 27.04.2012 13:09:34 /Install/NB/8540p/sp54149.exe ----r----- -2 nogroup 22394016 27.04.2012 13:14:11 /Install/NB/8540p/sp54248.exe ----r----- -2 nogroup 9481856 27.04.2012 13:18:38 /Install/NB/8540p/sp54257.exe ----r----- -2 nogroup 4180808 27.04.2012 13:05:37 /Install/NB/8540p/sp54549.exe ----r----- -2 nogroup 81326552 27.04.2012 13:12:07 /Install/NB/8540p/sp54600.exe ----r----- -2 nogroup 48868760 27.04.2012 13:19:57 /Install/NB/8540p/sp54620.exe ----r----- -2 nogroup 28575632 27.04.2012 13:12:10 /Install/NB/8540p/sp54635.exe ----r----- -2 nogroup 6580120 27.04.2012 13:14:10 /Install/NB/8540p/sp54714.exe ----r----- -2 nogroup 2912216 27.04.2012 13:17:53 /Install/NB/8540p/sp54740.exe ----r----- -2 nogroup 27476040 27.04.2012 13:06:05 /Install/NB/8540p/sp54841.exe ----r----- -2 nogroup 4711104 27.04.2012 13:09:02 /Install/NB/8540p/sp54887.exe ----r----- -2 nogroup 24835752 27.04.2012 13:10:41 /Install/NB/8540p/sp54890.exe ----r----- -2 nogroup 251788408 27.04.2012 13:07:22 /Install/NB/8540p/sp55192.exe ----r----- -2 nogroup 8594016 27.04.2012 13:01:01 /Install/NB/8540p/sp56768.exe d----w---- -2 nogroup 0 03.12.2012 10:40:50 /Install/NB/8540p/SWSetup/SP45229/ d----w---- -2 nogroup 0 03.12.2012 10:41:03 /Install/NB/8540p/SWSetup/SP46063/ d----w---- -2 nogroup 0 03.12.2012 10:41:13 /Install/NB/8540p/SWSetup/SP46768/ d----w---- -2 nogroup 0 03.12.2012 10:41:15 /Install/NB/8540p/SWSetup/SP46972/ d----w---- -2 nogroup 0 03.12.2012 10:41:16 /Install/NB/8540p/SWSetup/SP47231/ d----w---- -2 nogroup 0 03.12.2012 10:41:18 /Install/NB/8540p/SWSetup/SP47527/ d----w---- -2 nogroup 0 03.12.2012 10:41:33 /Install/NB/8540p/SWSetup/SP47593/ d----w---- -2 nogroup 0 03.12.2012 10:43:18 /Install/NB/8540p/SWSetup/SP47594/ d----w---- -2 nogroup 0 03.12.2012 10:43:29 /Install/NB/8540p/SWSetup/SP48061/ d----w---- -2 nogroup 0 03.12.2012 10:45:26 /Install/NB/8540p/SWSetup/SP48062/ d----w---- -2 nogroup 0 03.12.2012 10:45:51 /Install/NB/8540p/SWSetup/SP480 d----w---- -2 nogroup 0 03.12.2012 10:45:53 /Install/NB/8540p/SWSetup/SP48109/
You could also list the media contents from the Restore context menu. Just change the view to List from media. This is more of less the same information provided by omnimm -list_media SYN123L6 –detail or omnimm -catalog SYN123L6
Regards,
Sebastian
Is there any script which lists the media catalog of a complete session?
We have one clustered file server with 15 volumes, 20 volume hard links and 100 millions files. It’s hardly impossible to locate single files or directories in the internal database. I would prefer a complete file list which could be scanned with GREP.
Hi Michael,
using the command
omnidb -session 2013/04/02-4 -detail
you could list the objects for the session, grep for object name and use this as input for the command I described in the article. Example output of the command here:Object name : consult-nb06:/F 'consult-nb06 [/F]'
.Best regards
Daniel
Hi Daniel,
because of the large file server and many volumes, I’ve to deal with 63 objects and about 50 B6200 media.
It would be really nice to get an universal session-catalog report or script.
Regards,
Michael
Hi Micheal,
In your case there is no single command available. A script is required to do the job. You could prepare an enhancement request to ask HP for a single command.
Best regards
Daniel
Hi all
The command:
omnidb -filesearch host.domain /aaa/bbb/ccc/dir_name file_name
is producing the following output:
ObjType ObjName Description PathName
=====================================================================================
FileSystem host.domain:/aaa/bbb/ccc “/aaa/bbb/ccc” /aaa/bbb/ccc/dir_name/file_name
How can I list all “Backup versions” of that file?
Thanks
George
Hi Georg,
what version of Data Protector you are using?
Best regards
Daniel
Hi Daniel
I am using:
omnidb -version
HP Data Protector A.09.00: OMNIDB, internal build 87, built on Tue 10 Jun 2014 04:08:07 PM CEST
Regards
Hi Daniel
The command:
omnidb -filesearch host.domain /aaa/bbb/ccc/dir_name file_name
is producing the following output:
ObjType ObjName Description PathName
=====================================================================================
FileSystem host.domain:/aaa/bbb/ccc “/aaa/bbb/ccc” /aaa/bbb/ccc/dir_name/file_name
How can I list all “Backup versions” of that file?
I am using:
omnidb -version
HP Data Protector A.09.00: OMNIDB, internal build 87, built on Tue 10 Jun 2014 04:08:07 PM CEST
Thanks
Hi Georg,
sorry for the delay… Need to check this first.
Will inform you once I have found a solution.
Best regards
Daniel