Veritas-bu

[Veritas-bu] duplication

2005-04-07 11:22:04
Subject: [Veritas-bu] duplication
From: Sto Rage© <netbacker AT gmail DOT com> (Sto Rage© )
Date: Thu, 7 Apr 2005 08:22:04 -0700
what platform is your master server on? If its Unix, I have a small
shell script that I use to generate a report that details the tapes in
primary and secondary copies. Hope this helps...

**********start script*************
#!/bin/sh
#### Inputs required 1. start date 2. end date 3. client name and 4. backup type
### Examples..
##sudo tapelist.sh 09/09/04 09/10/04 client1 Incremental
##sudo tapelist.sh 09/09/04 09/10/04 client1 Full
##sudo tapelist.sh 06/01/04 09/10/04 client1 Archive

bpimagelist -U -d $1 -e $2 -client $3 -sl $4 -idonly |awk '{print $8}'
>imagelist
for i in `cat imagelist|sort`
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 Primary Copy:
bpimagelist -l -backupid $i |grep "FRAG 1" |awk '{print $9;}'|sort -u
echo 
----------------------------------------------------------------------------
echo Duplicate Copy:
bpimagelist -l -backupid $i |grep "FRAG 2" |awk '{print $9;}'|sort -u
echo 
----------------------------------------------------------------------------
echo Top Level Directory list in this Image
bpflist -U -d $1  -client $3 -backupid $i -option ONLY_DIRS|sed
's/.*P=\(.*\)\ D=.*/\1/;'|egrep '^\/'|sed 1q
echo 
----------------------------------------------------------------------------
done
******** end script***************

 This gives me a output like:

sudo ./tapelist2.sh 04/06/05 04/06/05 client Archive

Backup ID: client_1112813750
Backed Up         Expires       Files       KB  C  Sched Type   Policy
----------------  ---------- -------- --------  -  ------------ ------------
04/06/2005 11:55  INFINITY       4864 54353902  N  User Archive client_Archive
List of tapes that contain Image client_1112813750
Primary Copy:
001444
001806
----------------------------------------------------------------------------
Duplicate Copy:
000754
----------------------------------------------------------------------------
Top Level Directory list in this Image
/F/Home/
----------------------------------------------------------------------------
 

On Apr 7, 2005 7:27 AM, Hindle, Greg <Greg.Hindle AT constellation DOT com> 
wrote:
>  
> How can I tell how many tapes a duplication process is creating? I have to
> duplicate a large volume of exchange data and the processes are running now
> but I want to know how many tapes the process has created so far. How can I
> do this? 
> Thanks 
>   
>   
> Greg 
>  
>  
>  >>> The information contained in this e-mail transmission is privileged
> and/or confidential intended solely for the exclusive use of the individual
> addressee. If you are not the intended addressee you are hereby notified
> that any retention, disclosure or other use is strictly prohibited. If you
> have received this notification in error, please immediately contact the
> sender and delete the material.
>

<Prev in Thread] Current Thread [Next in Thread>