Amanda-Users

Re: can amanda trigger a script?

2008-03-04 05:20:05
Subject: Re: can amanda trigger a script?
From: Dave Ewart <davee AT ceu.ox.ac DOT uk>
To: amanda-users AT amanda DOT org
Date: Tue, 4 Mar 2008 09:38:06 +0000
On Tuesday, 04.03.2008 at 01:26 -0800, fedora wrote:

> Hi Marc/all,
> 
> U have gave me this script to export database to other directory.
> http://marc-muehlfeld.de/scripts/mybackup.sh
> 
> If I use this script on cronjob to export databases, Amanda does not
> know when will it finishes. Manual way, If let say this script finish
> exported databases at 3am. Then I have to run "amdump DailySet1"
> (cronjob) at 3.30am for instance. So, I always have to check and
> monitor when the script finish export databases and the time depends
> on the size of databases. I have to change time setting on cronjob as
> well. Can Amanda trigger that script so that after exporting databases
> it will run "amdump DailySet1" automatically?

Well, presumably amdump is run from cron too?  Why not just do:

0 3 * * * backupdb.sh && amdump DailySet1

or something similar?

Dave.
-- 
Dave Ewart
davee AT ceu.ox.ac DOT uk
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016

Attachment: signature.asc
Description: Digital signature

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