Yu Chen wrote:

I think it is easier just modify the amdump script to run scirpts before/after backups, so no recompiling, no testing, plain shell scripting. Just put whatever you want at the beginning and end of amdump.

Yes, but amdump runs on the server, not on the client.


And if it's only one machine where server = client,
then why don't you just execute this from crontab:

        #!/bin/sh
        dbstop
        amdump TheConfig
        dbstart

No need at all to change amdump in this case.
Or did I miss something?
        
--
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:  [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, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



Reply via email to