Amanda-Users

Re: (subject change) Possible to run scripts just before an amandad?

2006-06-01 10:01:54
Subject: Re: (subject change) Possible to run scripts just before an amandad?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Francis Galiegue <fg AT one2team DOT com>
Date: Thu, 01 Jun 2006 15:55:26 +0200
On 2006-06-01 15:18, Francis Galiegue wrote:

In fact I'm not asking for such a fine grained setup. I'd be perfectly happy with only a way to have amandad run scripts before and after backing up only, whatever the number of DLEs. At least, that's my need: a wrapper over amandad, not gtar.

For instance, you could have two directories /etc/amandad/before (note the "d") and /etc/amandad/after with scripts named 00stoporacle, 01stopmysql, whatever.

I have seen people add this shellscript to crontab to
run the amanda dumps:

   #!/bin/sh
   ssh oracle AT host1.example DOT com /usr/local/bin/stopdb
   amdump daily
   ssh oracle AT host1.example DOT com /usr/local/bin/startdb

With an approriate set of private/public keys to avoid password prompts
of course.

But I agree in general that before/after scripts more built into
amanda would be welcome.


--
Paul Bijnens, xplanation Technology Services        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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************