Veritas-bu

[Veritas-bu] bplist & '-hoursago'

2005-09-23 14:12:23
Subject: [Veritas-bu] bplist & '-hoursago'
From: ida3248b AT post.cybercity DOT dk (ida3248b AT post.cybercity DOT dk)
Date: Fri, 23 Sep 2005 20:12:23 +0200
Hi 

I have found that most NetBackup commands have an undocmented -X option 
which allows the use of epoch time for start/end

if you have gnudate installed, you could use something like:

#!/bin/ksh
epochend=`gdate '+%s'`
echo $epochend-86400 | bc | read epochstart
bplist -X -s $epochstart -e $epochend

Regards
Michael

On Fri, 23 Sep 2005 13:26:48 +0200, Marianne van den Berg wrote
> Hi
> I'm not a script writer. I need to run a bplist every morning at 7 (will 
do this from cron) for each client to list all files/directories backed up 
in the last 24 hours.
> For some or other reason, not all NetBackup commands have the same 
options - bplist does not have a '-hoursago', just a start and end date.
> Does anybody have a korn or bourne shell script that can do this?
> THANKS!!
> Marianne van den Berg

--
Cybercity Webhosting (http://www.cybercity.dk)


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