Networker

Re: [Networker] Creating fancy schedules

2006-11-08 18:21:03
Subject: Re: [Networker] Creating fancy schedules
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 8 Nov 2006 15:07:05 -0800
> I am new to Networker and I am trying to figure out how to create specific 
> schedules but I seem not to be able to. Has anyone created schedules like 
> the ones I need below? If so can you please explain how you accomplished 
> the two in question below?
> 
> 1) Full ONLY - Last day of the month 
> 2) Full ONLY - Last <weekday> of the month
>                ex. Last Tuesday of Every Month

I don't know that that is possible, at least through 7.2 (not sure about
7.3.x).

My copy of nsr_schedule has this section....

# man nsr_schedule
[snip]
                                                        Recurring
          date  is of the form `[ number ] weekday every [ number
          ] period'. number can be a number (1, 2, 3, etc.) or an
          ordinal   (first,  second,  third,  etc.),  and  it  is
          optional.  weekday must be one of "monday,"  "tuesday,"
          "wednesday,"  "thursday,"  "friday,"  "saturday," "sun-
          day." The use of "last" for  number  is  not  supported
          (for  example, "last friday" cannot be used to refer to
          the last Friday of the month).  period must be  one  of
          "week,"  "month,"  "quarter,"  or  "year."  Action/date
          pairs are separated by commas (`,').
[...]

The bit about last not being supported is the kicker for you, I imagine.

I've kluged around this in the past with a perl script that calculated
the last day of the month and then appended that date to the override
section of the schedule.  I shoved in the dates for the next 7 years.

I know one person that had the bandwidth to push his backups forward
until after midnight so that he could just backup on the first.
Admittedly, many of us can't delay backups that long...  Also, that only
works for last day of the month.  That doesn't do any good for say, last
Friday of the month.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER