Amanda-Users

Re: Any way to check status of amdump

2003-07-10 13:10:41
Subject: Re: Any way to check status of amdump
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Albert Hopkins <ahopkins AT dynacare DOT com>
Date: Thu, 10 Jul 2003 19:08:57 +0200
Albert Hopkins wrote:

I am running amanda-2.4.2p2-4 and and I have a script that does a

amdump $CONF || exit 1

But it appears that amdump always returns status 0.  Is there a
(scriptable) way to determine if a dump completed successfully?  What I
want to know specifically is if the dumps went to  tape or if they went
to disk either because there was a problem with the tape or it didn't
exist.

And what is the status of "some files are on tape and other files
are on holdingdisk"?

Some people find "all files are safe on holdingdisk, some in
degraded mode" a successful operation too, with good arguments
(yes, the clients did all a backup, anyone who wants a restore
can be satisfied).

What is the status of "all backups are well on tape, but there was
a problem sending the report with mail", or cleaning up some old
logfiles...  Ok fine, lets accept the return code 0 in such cases.

Amdump does exit with non-zero status codes if the backup couldn't be
run at all (wrong config, amdump already running etc).  Fine too.

Oh, you ony want to know if there is something left in the holdingdisk
to flush...

   find /the/holdingdisk -type f
 or
   amstatus Config --file /the/path/amdump.1 --waittaper

Or, you want to know if any disk failed.

   amstatus Config --file /the/path/amdump.1 --failed

Some people wrote a procmail script that classifies the errors
from amreport and notifies different people depending on the errors
it sees.  Very flexible in definition of "error", but not so easy.

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



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