Amanda-Users

Re: crontab

2002-09-09 18:31:41
Subject: Re: crontab
From: Gene Heskett <gene_heskett AT iolinc DOT net>
To: "Chris Bourne" <cbourne AT xapnet DOT com>, <amanda-users AT amanda DOT org>
Date: Mon, 9 Sep 2002 18:18:43 -0400
On Monday 09 September 2002 16:14, Chris Bourne wrote:
>Hello,
>     I would first like to say thanks to all who have taken the
> time out of there day to help me get this thing working. Anyway,
> I have finished ruuning the many tests associated with amcheck,
> amtape, amdump, etc. and I am ready to automate this thing with
> cron. I am rotating 14 tapes on a 8 cartriage magazine but only
> writing to 12 and cleaning once a week(is this overkill or to
> little?) This is what I have in my crontab file.......
>
>0 14 * * 1-6    /usr/sbin/amcheck -Mmis AT xapnet DOT com DailySet1
>0 1 * * 1-6    /usr/sbin/amtape DailySet1 slot next  <-- amanda 
does this automaticly
>0 2 * * 0    /usr/sbin/amtape DailySet1 clean <-- overkill
>0 2 * * 1-6    /usr/sbin/amdump DailySet1
>
>...I want the amcheck to run at 2pm Mon.-Sat. and any errors sent
> to mis AT xapnet DOT com ...I want amtape to rotate daily. Now should I
> rotate to the slot number or is the next option ok? ...I want to
> clean every Sunday. Does the tape cleaner need to be called with
> amtape or does the clean option search my chg-scsi.conf file and
> use the correct slot because when I ran this command I recieved
> no errors?
>...and last amdump Mon.-Sat.
>
Amanda will do its own slot advancing so you don't have to worry 
about that as long as you keep the next *wanted* tape in the 
magazine.  The one way you can mess with her mind is to change the 
tapes but not tell her they are changed by doing an "amtape 
/config/ reset", or manually noting the last slot that was loaded 
when you change, and manually reload that slot after changing the 
tapes, otherwise she gets confused as to what slot is loaded when 
she reads the currently loaded tapes header to see if its the right 
tape for tonight.  She'll read slot 3 thinking its slot 1, then 
check 2 and 3 again, not finding the right tape in slot 1 and go 
into degraded mode to the holding disk.

Most drives have a tally led someplace that blinks or something to 
tell when to run the cleaning tape. See the drives manual.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.14% setiathome rank, not too shabby for a WV hillbilly

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