Amanda-Users

Re: forgetting the history of tapes

2003-02-15 14:56:58
Subject: Re: forgetting the history of tapes
From: Dietmar Goldbeck <dietmar.goldbeck AT neteligent DOT de>
To: rb AT raphinou DOT com
Date: Sat, 15 Feb 2003 19:27:42 +0100
On Sat, Feb 15, 2003 at 04:55:48PM +0100, rb AT raphinou DOT com 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, <dietmar.goldbeck AT neteligent DOT de>
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

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