Ok, a couple of weeks ago, I asked about relating files to tapes. We had
an issue where we wanted to know which tapes would be required for
backups.
Thanks to all who responded.
1) A few people mentioned the Java GUI which has a preview function. I'd
prefer a command line version, but this could be made to work.
2) It's already possible to use bpimmedia to get images on a given tape.
We want to go the other way -- get tapes for a given image.
3) This doesn't solve the problem of getting the tapes for a given *file*.
Now, I spoke to someone at Veritas, and she said that the filelists for
backup images are kept in /usr/openv/netbackup/db/images/<client>. This
is cool -- they are in text format, so I can have a script grep through
them to find the file, and then I have the backupID, and then I can find
the tapes for that backupID, and I should be done.
However, does anybody know what the fields are in that file. Under the
<client> subdir, there are more subdirs with hashed backupIDs. Under
there, there are files, one header file, and one filelist (the filelist
has a .f extension). The filelist looks like this:
0 0 1 51 0 0 0 0 8388608 / 16877 root other 0 1008868013 1007744410 1007744410
0 0 9 50 1 0 0 0 46399504 /disk751/ 16877 root root 0 1008879253 1007658552
1007658552
0 0 15 51 2 0 0 0 46399504 /disk751/atest/ 16893 atest 9990 0 1008879253
1008879235 1008879235
0 0 19 51 3 0 0 0 46399504 /disk751/atest/OUT/ 16893 atest 9990 0 1008879253
1008879223 1008879223
1 0 38 50 4 1 0 0 46399504 /disk751/atest/OUT/bk_bant_000392_44k/ 16893 atest
9990 0 1008879228 992343637 1008879228
2 0 65 56 5 1 0 0 46399504
/disk751/atest/OUT/bk_bant_000392_44k/bk_bant_000392_rev1_pi2.wav 33277 atest
9990 1949818 1008861520 992343602 1008879228
...
I can figure out the filename, user and group, and I think the field
after group ID is the file size.
I'll be emailing Veritas as well, and I'll let you know what they say.
-Adam
Adam Levin, Senior Unix Systems Administrator | http://www.audible.com/
Audible, Inc.
Wayne, NJ, 07470 In purple, I'm stunning.
973-837-2797
|