cancel
Showing results for 
Search instead for 
Did you mean: 

List files backed up to a defined tape

rsm_gbg
Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

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.

View solution in original post

8 REPLIES 8

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

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
Level 5

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
Level 5

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
Moderator
Moderator
Partner    VIP    Certified

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.

mph999
Level 6
Employee Accredited

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

Nicolai
Moderator
Moderator
Partner    VIP   

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

 

rsm_gbg
Level 5

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/incremental-backup-misses-some-files

- Roland
 

 

rsm_gbg
Level 5

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