This is a great idea. I used Charles' 2010-vintage createvtapes.sh myself originally. With a number of options arguments changing in later versions of Amanda, many of my old script recipes have since become obsolete.
While we can look at well-documented shell scripts to see what they do and how to invoke, I wonder if it might be useful to write up a man-style page to accompany the most universal of them. On 2020-12-20 10:14 a.m., Gene Heskett wrote: > On Sunday 20 December 2020 04:47:40 Stefan G. Weichinger wrote: > >> Am 18.12.20 um 20:03 schrieb Charles Curley: >>> Has anyone collected Amanda helper scripts? I see "Stefan G. >>> Weichinger" <s...@amanda.org> just posted Gene Heskett >>> <ghesk...@shentel.net>'s helper script on github. >>> https://github.com/stefangweichinger/amanda-helpers/blob/master/gene >>> s_helper.sh >>> >>> I have my vtape builder script on my blog, and may yet post more. >>> http://charlescurley.com/blog/tag/amanda.html >>> >>> Is anyone collecting these? I did not see anything obvious in a >>> quick peruse of the wiki. >>> https://wiki.zmanda.com/index.php/Main_Page >> Well, the wiki is maintained by Betsol, I assume ... > I'm not sure I'd bet on it, Stefan. This bunch of amateurs may not know > what a wiki even is. > >> My tiny amanda-helpers repo is just a starting point and suggestion, >> as I mentioned in that other thread. >> >> It's kind of an invitation to share and contribute, yes, and with your >> permission I would like to add your script(s) as well. > Find attached, the main backup.sh script I wrote the majority of 14 years > ago. Make a link to it named flush.sh, it checks to see how it was > called and changes its behaviour accordingly. > > The idea was to append to an existing tape, just generated by amanda, the > database and configuration that generated THIS backup, aiding our > ability to do an uptodate, not a day old, bare metal recovery to a new > disk, following a bare install to get the rest of the tools needed. It, > until a recent perl breakage, has Just Worked here for 14 years now, and > I have done that bare metal recovery 3 times following the death of a > boot drive, > >> We can discuss if all the scripts should be copied there or if a mix >> of scripts and a link collection also does the trick. > I too have a list of bash utility scripts, like one to prepare a new > disk, out of the bag, with the amanda vtape file structure. Since > backup.sh is only 8k, I'll append that one too. Edit to suit your > situation of course. Also attached is gene.conf, rename and edit to fit > your install. Call it a template or whatever... > >> thanks for the feedback ;-) > > > Copyright 2019 by Maurice E. Heskett > Cheers, Gene Heskett