On Thursday 27 January 2005 08:59, Claus Rosenberger wrote:
>hi,
>
>as the response at this mailinglist i set up a script now which do
> some pre stuff then start the backup and do some post stuff after
> the backup. but the besser way would be an integration of these
> scripts into the backup process because the logfiles will be at one
> single place.
>
>the solution could be two parameters in amanda.conf, i.e.
>prescript=/path/to/script and postscript=/path/to/script
>
>if the script returns 0 the process will be continued, all stdout
> will be logged into the central logfile of the backup job.
>
>regards
>
>claus
I've found its best to do the pre and post stuff seperate from amanda,
as when amanda is running, it has a few file locks and those files
cannot be backed up by amanda so you lose the most vital info of the
backup, what is it and where is it. My method works without this
limitation. In my case the only 'pre' is a run of amcheck just so
the rest of my script's are looking at the correct tape as obtained
from the tapelist. My post consists of tarballing up the config and
indice containing dirs, and appending them to the end of the tape
after making sure the tapetype is set small enough to leave room on
the tape for them. In this manner the exact config and a truely
uptodate indice of all the tapes in the tapelist, is right on the end
of the tape. In my case thats about another 375 megs. On disk its a
<shrug>, on tape you'll need to compensate because they really are
fixed length. To recover, I play those last two files back with dd
into tar, and the rest of it can be fairly automatic from there.
At least thats the theory, practice occasionally differs as we all
know so well. :-)
--
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)
99.32% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
|