Video Screencast Help

how to find media id from a backuped filename ?

Created: 14 May 2014 • Updated: 21 Aug 2014 | 3 comments
This issue has been solved. See solution.

hi all:
    I was backup some file from my file server a long times,my tape library slots full,so i want check out some media volume,and keep some other in the tape library,but i don't know how to find that volume.

    For example ,i backup a file ,it's name /home/abc.txt,i forget when i was backuped to find which volume contains this file?

Operating Systems:

Comments 3 CommentsJump to latest comment

Marianne's picture

You need to know more or less when this backup was taken.

You can use the BAR GUI to select the client name, policy type and date range.

Browse the folders in the backup results until you find the file name. 
Use the 'Preview Media' button to see the media id.

From cmd, you can use this command:

bpimagelist -client <client-name> -d <start-date> -e <end-date> -media -U

You can add more parameters to narrow it down, such as:
-pt <policy_type>
-policy <policy_name>

Format for start and end-date is mm/dd/yyyy

Please always select or tell us which OS. It helps us to provide the path to commands and to have an idea of which GUI you may be using.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION's picture; padding-right: 27px; margin-right: 3px; font-weight: bold; line-height: 15px; color: rgb(114, 168, 38); text-decoration: none; font-family: helvetica, arial, clean, sans-serif; font-size: 12px; background-position: 100% -75px; background-repeat: no-repeat no-repeat;">Marianne,thank you for  your help ~!

but i want know ,how to find media id from filename ?  If i forget when i was backuped this file,how to find it in command?

bpimagelist print a lot of media,i don't know which volume contains the file.

Marianne's picture

The way that NBU indexes images is firstly by Client name, then by date.

So, you really need a client name and some sort of time frame. Monthly or Weekly Full backups are normally good candidates.
Use the GUI to browse.
Once you have found the file you are looking for, have a look at the date that the backup was taken. 
Then use the bpimagelist command above with start and end date as the same date of the backup.

If the file is on a large fileserver and the backup spanned a couple of tapes, you will receive a list of all tapes that were used for that particular backup.
You will need to put all tapes in the robot.
Only when NBU needs to skip to the specific image fragment will you see the actual tape number containing that file, and NBU will request the tape mount.

Also see if this helps to find a file name:

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links