[Veritas-bu] multistreaming and backup IDs - Scripting help needed
2004-09-28 13:49:32
Subject: |
[Veritas-bu] multistreaming and backup IDs - Scripting help needed |
From: |
juanino AT yahoo DOT com (Jerry) |
Date: |
Tue, 28 Sep 2004 10:49:32 -0700 (PDT) |
I need to do this as well, but haven't got around to
it. Here is what I know so far.
The "stream" is aparently visible with:
bpimagelist -d your_start_date -L
The line item is:
Stream Number:
I really with this was in the ugly, but easier to
parse output of bpimagelist (no -U and no -L). From
this stream number you can x-reference it with the
file in:
/usr/openv/netbackup/db/images/hostname/STREAMS
I'd guess you would have to be careful about streams
being re-ordered in the policy if you store this info
somewhere.
Hope this helps,
Jerry
--- Sto Rage© <netbacker AT gmail DOT com> wrote:
> can someone help me with what I am trying to do?
> - We have a Policy with multiple streams
> enabled and with a list
> of Include files. So when the backup kicks off it
> spawns a number of jobs
> based on the Include files list.
> What I want is to setup an automated email that will
> send me the info of
> each of these jobs and its related backup id/ image
> name and the list of
> tapes it used..
> - When the backup finishes, send me the status
> of the job 0 or 1 or
> whatever is the error code. I have that setup using
> the default
> notification. so I get the following email for each
> job that it spawns.
> Subject: Backup on <client name> - 0 started
> Backup on client <client name> by root succeeded.
> File list
> ---------
> L:\<driectory1>
>
> What I want is a way to include the backup-ID or
> image name in this email.
> How do I do that?
> - Currently I generate the image names and the tapes
> used using the
> following script on the master server, but have no
> way to co-relate
> the list of jobs
> to their respective backupID or image name.
>
> #### Inputs required 1. start date 2. end date 3.
> client name and 4. backup
> type
> bpimagelist -U -d $1 -e $2 -client $3 -sl $4 -idonly
> |awk '{print $8}'
> >imagelist
> for i in `cat imagelist`
> do
> echo
> echo Backup ID: $i
>
> bpimagelist -U -backupid $i
> echo
>
-----------------------------------------------------------------------
> -----
> echo List of tapes that contain Image $i
> bpimagelist -l -backupid $i |tail +3 |awk '{print
> $9;}'|sort -u
> echo
>
-----------------------------------------------------------------------
> -----
> done
>
>
> thanks in advance
> -G
> _______________________________________________
> Veritas-bu maillist -
> Veritas-bu AT mailman.eng.auburn DOT edu
>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
|
|
|