On 09/02/2008, Vamegh Hedayati <[EMAIL PROTECTED]> wrote: > Hello, > > I have written a couple of scripts around bacula. > > The first is a tape cleaner of sorts.. This script has no error > checking whatsoever.. > It grabs every tape library connected to a server and blanks all tapes > using all available drives. If you want to blank all libraries and all > tapes as quickly as possible, This script is for you, > > its quick and dirty it threads off per library and per drive. You need > lsscsi installed before running this and mt-st and mtx. > > I wrote it to blank all tapes after labelling them during test runs > dealing with 2 libraries with 40 tapes each it aint fun to try erasing > all of the labels before stopping test runs. > > If I get the Time I will update this with some proper error checking > and will also update it to ask before erasing a library and probably > to be able to select a subset of the tapes rather than everything.. > Should make it a pretty decent tool. (Its been tested on Qualstar > 4440 series with odd number of tape drives 2 libraries connected to 1 > sd total of 7 physical tape drives sleep may need to be slightly > changed depending on the speed of your drives ) > > The second two scripts allow every other day / weekofmonth / > weekofyear / month / year rotation. > > Its set to allow even rotations to occur, it grabs localtime so doesnt > require any arguments to be passed to it. > > Basically thats it, some one else might find these useful > > Ive also written some automated rpm generators if anyone is > interested. downloads and patches and adds configs etc properly ( > splits off into bacula-dir, bacula-sd, bacula-fd tested on centos 5 / > rhel 5) > > Thanks, > > Vamegh
Also forgot to mention, If your using something like postfix, if you run a body_check filter something like: /JOB_CANCELLED_ON_PURPOSE/ discard rule.whatever discarding this email, not necessary. it will drop the emails.. Would be nice if you could set something like exit 9; for specific exit s which are succesful job exits, without any logging.. Vamegh ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users