On Tue, Nov 12, 2002 at 01:36:54PM -0700, Carl D. Blake wrote:
> On Tue, 2002-11-12 at 11:59, Jay Lessert wrote:
[clip]
> > config "daily", run 5X/week:
[clip]
> > config "monthly", run 1X/month
[clip]
> This doesn't sound too bad.  My only question is how would I run the
> monthly config.  Would I just pick a day in the month on which I would
> run "amdump monthly" instead of "amdump daily"?

Do what you like, that's *one* choice Amanda won't make for you.  :-)

If I were you, and since (apparently) you want to run your dailies
5X/week on Monday-Friday, I would run my monthly on the first Saturday
of each month, something like:

% sudo crontab -l amanda
# Run daily on mon/tue/wed/thu/fri nights (0=sunday)
01      23      *       *       1-5     /home/amanda/bin/daily
#
# Run monthly on every sat night, it exits if DOM > 7
01      23      *       *       6       /home/amanda/bin/monthly

~amanda/bin/monthly:
#!/bin/sh
if expr `date +%d` \< 8 ; then
    amdump monthly
    amtape monthly eject
else
    exit 0
fi

> If so, would that cause
> the daily dumps to get offset by one day?  Does this even matter?

Note that the "monthly" config runs with 'record no', so the "daily"
config has no idea that "monthly" exists.

If for some reason you can't run "monthly" on an off night (no changer,
for example), then yes, you would have to arrange for your cron/script
environment to either:

    - Run "daily", then "monthly" in series 1 day/month 

    - Skip "daily", run "monthly" instead 1 day/month.

Best is a changer with one slot dedicated to the "monthly" config,
though.  Make that happen if you possibly can.

-Jay-

Reply via email to