On Sat, Feb 15, 2003 at 04:55:48PM +0100, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I'm busy testing amanda for its use in production in the future. For
> these tests, I often want to restart as if I was starting the dump cycle
> from zero. How can I achieve this? For example, even if I'm in the
> middle of a dumpcyle, I want to restart with my tape number 0 for a new
> test. 
> 

If you want to restart a specific tape just tell
Amanda it has failed:
amrmtape <config> <tape label>

I also have a small test (for network testing :-) ) which shows all
remove commands to really restart a configuration:

#!/bin/sh

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

while sleep 30; do
    rm -r /usr/local/amanda-2.4.4b1/var/log/test/* \
        /usr/local/amanda-2.4.4b1/var/lib/test/curinfo/* \
        /usr/local/amanda-2.4.4b1/var/lib/test/index/* \
        /usr/local/amanda-2.4.4b1/etc/amanda/test/tapelist*

    rm /dumps/tape-file/amanda/data/*

    amlabel test test-1
    amdump test
    echo amdump done `date`
done



-- 
Dietmar Goldbeck, Senior Consultant, <[EMAIL PROTECTED]>
Neteligent GmbH, http://www.neteligent.de/
Walter-Benjamin-Platz 6, 10629 Berlin, Germany 
fon: +49 (0)30/310182-73, fax: +49 (0)30/310182-79

Reply via email to