Amanda-Users

Re: Directory too large for single tape.

2006-09-13 10:24:19
Subject: Re: Directory too large for single tape.
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Amanda Users <amanda-users AT amanda DOT org>
Date: Wed, 13 Sep 2006 16:17:58 +0200
On 2006-09-13 15:59, Stephen Carville wrote:
Ian Turner wrote:
On Monday 11 September 2006 01:48, Stephen Carville wrote:

I've been using Amanda for about five years now.  The only problems I've
ever had are because a single dumps has to fit on a single tape.


If you upgrade to Amanda 2.5.x, then you can instruct Amanda to split dumps across tapes; so you can make your partitions as large as you like, and just use as many tapes as are required.

AFAICT, this doesn't really split the tar but tries to create separate tars of subdirectories. Unfortunately RMAN puts it all in one directory (There may be a way to split it -- I'm checking into that too).


AFAICT, (and I can tell it far enough, because I've done it, instead
of going about rumours!) no no,  it really splits the bytestream on
tape, nothing to do with separate tar archives of subdirectories.
Even one big 400 Gbyte single file can be put on a a tape medium less
than 400 Gbyte capacity (but you need a changer).

http://wiki.zmanda.com/index.php/Splitting_dumps_across_tapes


Is it possible to get amanda to follow symlinks? Every file name ends in a digit is it is trivial to do something like:

rm /empty/GIS1/*

find /NFS/euphrates_backup/GIS -name '*[1,3,5,7,9]' -exec ln -sf {} /empty/GIS1/ \;

rm /empty/GIS2/*

find /NFS/euphrates_backup/GIS -name '*[0,2,4,6,8]' -exec ln -sf {} /empty/GIS2/ \;

Then backup GIS1 and GIS2 as separate volumes.

Too complicated.
(And no, gnutar invoked by Amanda will not follow symlinks, too
dangerous:  what if "ln -s ../.. up" or similar exists?)

Disklist entries like this will work just fine:

host.example.com  GIS_UNEVEN /NFS/euphrates_backup/GIS {
        comp-user-tar
        include "./*[13579]"
        }
host.example.com  GIS_EVEN /NFS/euphrates_backup/GIS {
        comp-user-tar
        include "./*[02468]"
        }
host.example.com  GIS_REST /NFS/euphrates_backup/GIS {
        comp-user-tar
        exclude "./*[0-9]"
        }

Note that I've added a "REST" archive for those files
not ending in a number. Always use such catch-all at the
end.


--
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************