Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

List files backed up to a defined tape

Created: 05 Aug 2013 • Updated: 06 Aug 2013 | 8 comments
This issue has been solved. See solution.

Hi,

Is there a way of easily show all files that has been backed up onto a defined tape?

I've search but can't find a good way of doing this.

Is ther a log file that will show all files? or is there an option to turn that on?
This is for "validation" purposes only and we could disable this log when done.

-Roland

Operating Systems:

Comments 8 CommentsJump to latest comment

RamNagalla's picture

yes its possible...

/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mcontents -ev <media id> 

you can also get this form GUI---> Reports--Media contents

rsm.gbg's picture

you can also get this form GUI---> Reports--Media contents

I don't see Media contents !!

I got a Tape Contents which I ran for 2 hours!! but that only listed all the filenumber and backup id's, no files.

I give the bpmedialist a try.

rsm.gbg's picture

Hi,

It seems that the bpmedialist does the same as the "Tape Contents" report, no files.

media id = DLT003, allocated 07/31/2013 01:14, retention level = 10

File number 1
  Backup id = papp01-lh_1375197242
  Creation date = 07/31/2013 01:14
  Expiration date = 08/28/2013 01:14
  Retention level = 10
  Copy number = 1
  Fragment number = 9
  Block size (in bytes) = 65536

- Roland

RamNagalla's picture

now the only option that you left is with the bplist commnad..

you might need to use or mix different commands to get the required output. or you can use them in script..

bpimagelist  or bpimmedia  to get the image info from the media and bplist to get the file list.

SOLUTION
mph999's picture

Unless I am blind (quite possible) I don't see an option in bplist to specify a media id.

As Nagalla explains, you can get the image ids on a tape via say bpimmedia, and then bplist to get the files in this image.  However, if the image spans across multiple tapes, you cannot see if an individual file is on tape1, or tape2 ....

Martin

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
rsm.gbg's picture

Hi,

Actually I needed the backups from a specific date/time rather than tape ID.

In my case they are the same anyway, I only use 1 tape/day.

I used bpdbjobs to see wich tape a particluar policy is written to.

- Roland

Nicolai's picture

I think you can do what you want if combine bpmedialist with bpflist

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

http://www.symantec.com/docs/TECH145113

However bpflist is a little triggy to use - so here are some examples of mine

http://www.mass.dk/netbackup/quick-hints/64-bpflist.html

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

rsm.gbg's picture

Hi,

Thanks all,

bplist did the trick after some trial and error.

root@master:/usr/openv/netbackup/bin# ./bplist -C oracle-lh -l -s 08/05/2013 00:00:00 -e 08/05/2013 23:00:00 -R 99 /backup/oracle/*

Now I got another question after my findings.

I create a new thread for that.

"Incremental backup misses some files."

https://www-secure.symantec.com/connect/forums/inc...

- Roland