[Veritas-bu] Using -Listpolicy with bplist.
2006-10-05 14:15:59
Subject: |
[Veritas-bu] Using -Listpolicy with bplist. |
From: |
netbacker at gmail.com (Sto Rage© ) |
Date: |
Thu, 5 Oct 2006 11:15:59 -0700 |
> Darn. Doesn't seem to do anything for me. I tried 999 and the actual
> level (9) for this image. Both stay blank.
>
> # bpimagelist -backupid netapp-srv_1159657209 IMAGE netapp-srv 0 0 7
> netapp-srv_1159657209 Netapp 19 *NULL* NetBackup Full-Backup 0 9 1159657209
> 1852 2147483647 0 0 8714404 13585 1 2 0 Netapp27_1159657209_FULL.f *NULL*
> *NULL* 0 1 0 0 0 *NULL* 0 0 0 0 0 0 0 *NULL* 0 0 0 *NULL* 10340 0 0 829319 0 0
> [...]
> # bpflist -d 04/01/06 -backupid netapp-srv_1159657209
> no entity was found
> # bpflist -d 04/01/06 -backupid netapp-srv_1159657209 -rl 999
> no entity was found
> # bpflist -d 04/01/06 -backupid netapp-srv_1159657209 -rl 9
> no entity was found
>
May be you should add -client to it. BTW, -rl is not retention level,
its recursion level.
This is what works for us:
<snip>
echo Top Level Directory list in this Image
bpflist -U -d $1 -client $3 -backupid $i -rl 10 |sed 's/.*P=\(.*\)\
D=.*/\1/;'|egrep '^\/'|sed 1q
</snip>
-G
|
|
|