Amanda-Users

Re: file changed as we read it

2007-12-20 23:53:29
Subject: Re: file changed as we read it
From: Charles Curley <charlescurley AT charlescurley DOT com>
To: Glenn English <ghe AT slsware DOT com>
Date: Thu, 20 Dec 2007 21:45:41 -0700
On Thu, Dec 20, 2007 at 10:06:57AM -0700, Glenn English wrote:
> (Debian binary Amanda install, tar, Linux)
> 
> One of the things I back up is the DMZ logging server's /var/log
> directory. The backup fails fairly pretty regularly because that's a
> very busy place, even in the middle of the night. This must be a very
> common problem. How can I get around it?

An excludes file. For /var I have one called excludes.var on the
target machine:

# cat /etc/amanda/DailySet1/excludes.var
./ftp/pub/*.updates*
./cache/yum/*
./cache/apt/*
./named/chroot/proc/*
./spool/squid/*
./www/html/jdk.docs/*

Then in the tape server's amanda.conf, set up a dump type like so:

define dumptype comp-root-tar-var {
    comp-root-tar
    comment "Root partitions with compression, special for /var"
    exclude list "/etc/amanda/DailySet1/excludes.var"
}

Then in your disk list, use it:

dragon.localdomain /var comp-root-tar-var


-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: signature.asc
Description: Digital signature

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