On Thu, 2005-11-03 at 23:36 -0600, veritas-bu-
request AT mailman.eng.auburn DOT edu wrote:
> Date: Thu, 3 Nov 2005 12:56:42 -0600
> From: "Lewick, Taylor" <tlewick AT hrblock DOT com>
> To: <veritas-bu AT mailman.eng.auburn DOT edu>
> Subject: [Veritas-bu] Script or command to check for tapes that should be
> offsite
>
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C5E0A8.544D1ACC
> Content-Type: text/plain;
> charset="US-ASCII"
> Content-Transfer-Encoding: quoted-printable
>
> Does someone have a script or an easy way to check for tapes that should
> be offsite. I.e, a 3 year backup that was ran, sent offsite, requested
> back for a restore, and then we forgot to send it back offsite so it's
> stuck in the library?
>
Here is a quick and dirty to do what you want, plus it will give you a
count of all the media you have offsite:
vmquery -a -bx | tail +3 | grep offsite | sort +0 >/tmp/offsite.out
echo " ">>/tmp/offsite.out
echo " Total offsite media">>/tmp/offsite.out
vmquery -a -bx | tail +3 | grep offsite | wc -l >>/tmp/offsite.out
If you go to my web site http://gurski.com/netbackup.php I will be
posting a more elegant version which will include a formatted report. I
should have it up there by 11:00 am EDT on 11/04/2005. The script will
be called ebs_offsite (Enterprise Backup System)....
There are lots of other scripts there as well....
--
ed <ed AT gurski DOT com>
|