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 [EMAIL PROTECTED] /usr/local/bin/stopdb
   amdump daily
   ssh [EMAIL PROTECTED] /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:  [EMAIL PROTECTED]
***********************************************************************
* 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          *
***********************************************************************

Reply via email to