Amanda-Users

Re: pre- and post-dump script?

2003-08-21 17:03:42
Subject: Re: pre- and post-dump script?
From: "Kurt Yoder" <kylist AT shcorp DOT com>
To: "Robert Helmer" <robert AT roberthelmer DOT com>
Date: Thu, 21 Aug 2003 17:01:00 -0400 (EDT)
This is a possibility. The disadvantage is that the database stays
shut down for the duration of a complete amdump. I really only need
it to be shut down for the duration of the backup on the database
server. I could do it the way you are suggesting if no other way is
feasible.

Robert Helmer said:
> Maybe I am missing something, but can't you run a script from cron
> that does something like :
>
> pre_backup.sh &&
> amdump DailySet1 &&
> post_backup.sh
>
>
> On Thu, Aug 21, 2003 at 04:46:29PM -0400, Kurt Yoder wrote:
>> So, what's the easiest way to run a command on a client before the
>> dump starts and a different command after the dump finishes? I
>> need
>> to shut down a database, do the dump, then restart the database.
>> Do
>> I have to re-code the runtar executable to do this? C is a bit
>> beyond my abilities at this point. If anyone has an example of how
>> they've done this, please post or let me know.
>>
>> Thanks
>>
>> --
>> Kurt Yoder
>> Sport & Health network administrator
>>
>


-- 
Kurt Yoder
Sport & Health network administrator


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