On Tue, 23 Nov 2010 18:00:54 -0500
gene heskett <[email protected]> wrote:

> Charles, I think your idea is even better, but does your offsite
> drives have a pair of files per directory that are all the amanda
> config and indice entries current to that days use of each vtape?

Thanks.

Not quite, but something similar. Each day I tarball the config files
and stuff them into a sister directory to the vtape directory. I use a
script like so:

#! /bin/bash

# Run the amanda dumps and back up key amanda data. Run this as the
# backup user.

config="DailySet1"

/usr/sbin/amdump ${config}

umask 0066
cd /
tar cjf /media/backs/amanda/back.var/var.lib.amanda.${config}.$(date
+\%a).tar.bz2 \ var/lib/amanda/ --exclude=*~
tar cjf /media/backs/amanda/back.etc/etc.amanda.${config}.$(date
+\%a).tar.bz2 \ etc/amanda/ --exclude=*~
tar cjf /media/backs/amanda/back.log/log.amanda.$(date +\%a).tar.bz2 \
    var/log/amanda/ --exclude=*~

I think that gets everything. The naming scheme should work with
multiple configurations. It also ensures a week's worth of backups.

-- 

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

Reply via email to