Veritas-bu

[Veritas-bu] Backup status

2003-08-04 14:50:34
Subject: [Veritas-bu] Backup status
From: larry.kingery AT veritas DOT com (Larry Kingery)
Date: Mon, 4 Aug 2003 14:50:34 -0400 (EDT)
>  Given a class(policy)name, how do i get the details of its
> backup status? 
> 
> For eg: What is the command to see the backup status of a class
> ->XYZ_system_bkup.  The output should show: the start and end
> time of the backup,  the amount of data backed up, the final
> status(success or failed) and the type of backup (full,
> incremental ...). 
> 

Start with bpimagelist -L -policy $POLICY -hoursago XXX

That'll give you almost everything you want.  You might then replace
-L with -l, which will give you a nicer format to use with scripts
(hint: use bpdbm -ctime XXX to convert unix time to human readable,
after you add the start and elapsed times to get the end time).

Note that bpimagelist only shows jobs which exit with status of 0 or
1.  To see failed jobs, you'll have to mess around with bpdbjobs
(probably with -all_columns).


-- 
Larry Kingery 
   10 kinds of people, those who understand binary and those who don't

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