On Tue, Nov 27, 2001 at 04:11:48PM -0800, Adam Haberlach wrote: > On Tue, Nov 27, 2001 at 11:25:34AM -0500, Mitch Collinsworth wrote: > > > > On Tue, 27 Nov 2001, Travis Rail wrote: > > > > > All, > > > Is there any way that Amanda can backup specific file directories? > > > Every time I try to back up a single directory I get the following: > > > > > > mercury /var/qmail lev 0 FAILED [/sbin/dump returned 1] > > > > use tar rather than dump if you want to dump something less than > > a full filesystem. > > Can I get a bit more information? How do I do this? I'm about > to start backing up from a Solaris machine to a Linux machine, and I'm > not sure if the dumps are compatible (and I'd like to be able to dump > on a per-directory basis, too).
It is quite unlikely that the dumps are compatible. You may need to install GNU tar. You configure this in the dumptypes in amanda.conf by specifying program "GNUTAR" in a dumptype definition. You may need to put a copy in, say, /usr/bin/gtar and use the option --with-gnutar=/usr/bin/gtar as an argument to ./configure when you build amanda. The disklist file lists directories, something like this: # Host Directory Dumptype Interface dilbert / low -1 eth0 dilbert /usr low -1 eth0 dilbert /var low -1 eth0 These things may have changed somewhat with more recent releases than we're running. 2.4.1p1 still serves us very well. Gnu tar is invoked with an option that prevents it from crossing filesystem boundaries, so the above disklist lines do not back up /usr and /var in duplicate, provided they're on partitions separate from the root partition. You may fine-tune exclusions from what's backed up, though that's the subject of many an agonized FAQ. -- ----------------------------------------------------------------- Dan Wilder <[EMAIL PROTECTED]> Technical Manager & Editor SSC, Inc. P.O. Box 55549 Phone: 206-782-8808 Seattle, WA 98155-0549 URL http://embedded.linuxjournal.com/ -----------------------------------------------------------------
