Re: Pre/Post backup scripts on clients ?
2005-05-05 10:01:58
On Thu, 5 May 2005, Guy Dallaire wrote:
> I was wondering: Is amdump called on the clients as well via a crontab
> entry ? I taught the crontab entry was on the server, and that it
> contacted the client via the network when it's ready to backup it. My
> problem is that I have to execute the pre/post backup scripts on
> CLIENT machines.
So your crontab on the server has to use e.g. ssh with pub/priv key pair to run
the required commands on the client.
> 2005/5/5, Jon LaBadie <jon AT jgcomp DOT com>:
> > On Wed, May 04, 2005 at 10:51:10PM -0400, Guy Dallaire wrote:
> > > Is there a way to call some sort of script before and after the backup
> > > begins on the clients ? I want to make sure my oracle hot backups are
> > > completed before I start backuping my clients. I also need to shut
> > > down the database for cold backups and restart it after the backup is
> > > done.
> >
> > Crontab entry calling amdump can be a shell script calling your
> > stop and restart commands wrapped around the call to amdump.
> >
> > If that is too coarse you can replace your actual backup program
> > (some dump or gnutar) with a similar wrapper that differentiates
> > which DLE is being called and if it called for estimate phase
> > or backup phase. Then the stop and start commands only need
> > be wrapped around one shorter instance.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert AT linux-m68k
DOT org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
|
|