On Wed, 15 May 2019 22:18:42 -0400
Nathan Stratton Treadway <natha...@ontko.com> wrote:

> On Wed, May 15, 2019 at 19:58:52 -0600, Charles Curley wrote:
> > On Wed, 15 May 2019 20:48:46 -0400
> > Nathan Stratton Treadway <natha...@ontko.com> wrote:
> >   
> > > On Wed, May 15, 2019 at 17:02:57 -0600, Charles Curley wrote:  
> > 
> > Here's what I do to customize:
> > 
> > cp -rp /var/lib/amanda/example/amanda.conf ${confDir}
> > 
> > # Now adjust the configuration to suit.
> > cd ${confDir}
> > sed -i -e
> > "s/tape:\/dev\/YOUR-TAPE-DEVICE-HERE/chg-disk:\/var\/amanda\/vtapes/"
> > amanda.conf sed -i -e 's/tapetype HP-DAT/tapetype HARD-DISK/'
> > amanda.conf
> > 
> > And that seems to works. It does produce one spurious commented out
> > change, on line 118.  
> 
> When you say "that seems to work", do you mean it fixes amrecover, or
> just that the sed commands do edit the lines in the amanda.conf file?

Sorry. I mean that the sed commands do edit the lines.

> 
> As far as I understand, amrecover looks at amanda-client.conf (and not
> amanda.conf), so to get amrecover to work without the "-d" command
> line option you'd need to do do some editing of the -client file.

Bingo.

> 
> (But given that the official Debian packages work the way you want
> without any -client file at all, I'm thinking that it makes sense to
> simply comment out the tapdev line in the -client file, rather than
> edit it to make it match the amanda.conf file [though as long as the
> two lines are in sync the net effect is probably the same].)

Indeed, that is the case on all the hosts in my existing setup. The
tapedev line is commented out. That works on the testbed as
well. Methinks that's a better solution, as it would *usually* require
that changes be made only in one place.



-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com

Reply via email to