Amanda-Users

Re: Duplicating backup

2006-09-28 19:06:49
Subject: Re: Duplicating backup
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Thu, 28 Sep 2006 18:54:02 -0400
On Thursday 28 September 2006 16:47, Jon LaBadie wrote:
>On Thu, Sep 28, 2006 at 11:09:37AM -0700, Steven Kurylo wrote:
>> Hi,
>>
>> Right now we run a weekly full backup, rotating through several tapes.
>> As well we run a full monthly backup, rotating through the tapes
>> yearly.
>>
>> Running a weekly backup and then a monthly backup is rather wasteful,
>> the data will almost be identical.  Is there anyway I can take the
>> weekly backup which just finished and copy it to the monthly tapes?
>>
>> I could use dd, but then amanda wouldn't know about these monthly
>> tapes.  That would make restoring data troublesome.  Is there a way to
>> make amanda copy data from a tape labeled "weekly1" to "monthly1"?  Or
>> can I manually copy certain files from the weekly index/info
>> directories to the monthly directory to make amrestore work after I dd
>> the tapes?
>>
>> Is there a better solution?
>
>It has been suggested as an excellent enhancement to amanda.
>No one has yet taken up the task of implementing it.

What do you mean "no one", Jon?  Gee, don't I count? :-)

Lets take a 2 minute commercial break here:

That becomes a non-issue if my wrapper scripts are being used, as each tape 
(or an archival copy of it) then contains ALL the info needed to restore 
from it, or any previous tape in that "tapecycle".  All appended to the 
regular backup where on a real tape its a long mt -f /dev/ice fsf #of 
dle's to get to it, but it is there.  On a vtape, much handier because its 
just a couple more files in each slots directory and therefore instantly 
available for a tar based recovery, of both the indices, and the amanda 
config info that generated THAT backup.

Because its a wrapper script, it does part of its work AFTER amdump has 
completed, and all file locks amanda may have set are cleared, so there 
are NO missing files in the tarballs of your */etc/amanda/Daily tree, or 
your */var/amanda/Daily/indice directory that are shown below as the last 
2 files of the listing.

If anyone is interested, see GenesAmandaHelper-0.5.tar.gz on the 
www.zmanda.org site.  Tain't purty, has the dregs of 3 years development 
commented out in it, but "it works for me".

The directory of a vtape these scripts make looks like this:

[root@coyote example]# ls -l /amandatapes/Dailys/data/
total 7347216
-rw-------  1 amanda disk         10 Sep 10 00:42 00000-Dailys-14
-rw-------  1 amanda disk      32768 Sep 10 00:42 00000.Dailys-14
-rw-------  1 amanda disk         12 Sep 10 00:46 00001-coyote._var.2
-rw-------  1 amanda disk    7471104 Sep 10 00:46 00001.coyote._var.2
-rw-------  1 amanda disk         14 Sep 10 00:54 00002-coyote._root.2
-rw-------  1 amanda disk  601554944 Sep 10 00:54 00002.coyote._root.2
-rw-------  1 amanda disk         14 Sep 10 00:56 00003-coyote._usr_local.0
-rw-------  1 amanda disk  581533696 Sep 10 00:56 00003.coyote._usr_local.0
[...]
-rw-------  1 amanda disk         11 Sep 10 03:43 00045-gene._etc.0
-rw-------  1 amanda disk    2195456 Sep 10 03:43 00045.gene._etc.0
-rw-------  1 amanda disk         10 Sep 10 03:43 00046-TAPEEND
-rw-------  1 amanda disk      32768 Sep 10 03:43 00046.TAPEEND
-rw-r--r--  1 amanda disk      81920 Sep 10 03:44 configuration.tar
-rw-r--r--  1 amanda disk  117688320 Sep 10 03:44 indices.tar

Humm, looks like amcheck has already run and its set to overwrite the 
oldest vtape.  But you get the idea I hope.

The last 2 files are the magic twanger.  They might be squeezable with 
gzip, but the indices are already gzipped files, so gaining anything there 
isn't worth the cpu horsepower to try.

I now return you to your regularly scheduled programming. :)

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.

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