Networker

Re: [Networker] problem creating a monthly sechule

2002-12-22 16:25:44
Subject: Re: [Networker] problem creating a monthly sechule
From: Andrew McGeorge <Andrew.McGeorge AT ASBBANK.CO DOT NZ>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 23 Dec 2002 10:15:35 +1300
One can also use:

full last sunday every -1 month

Can anyone figure out how to code this one though?

Full on the Friday before the last Saturday of the month.

This is the always the last Friday of the month, except when the last day of
the month falls on Friday.

Thanks in advance
Andrew McGeorge

-----Original Message-----
From: Preston de Guise [mailto:pdeguise AT BIGPOND.NET DOT AU]
Sent: 22 December 2002 8:38:AM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] problem creating a monthly sechule


On Fri, 2002-12-20 at 05:54, Davina Treiber wrote:
> >> Tim: thanks for this. it works like a charm exactly as you describe.
> >> at the risk of quibbling with good news, however, I have a couple of
> >> problems with this. firstly why doesn't it work the way the paragraph
> >> in the manual says it should? and secondly, isn't this a sysadmin
> >> disaster
> >> waiting to happen? what if I forget about this 3 years from now and
> >> don't extend the schedule? surely there should be some way of
> >> defining a schedule like this definitively once and for all.
> >>
> >
> >Jim,
> >
> >This is another area of Networker which could use some help to make it
bullet
> >proof.  I have the same problem.  My solution is to have a cron job which
runs
> >periodically in Decemeber and sends email reminding me to set the
schedules
> >for the next calendar year.
>
> By now I expect you have read the later responses that show the newer more
> flexible way of doing this. It is already a lot closer to bullet proof
than
> you thought.
>
> The only bit missing (to the best of my knowledge) is the ability to do
> something like "full last Sunday every month". Unless they have changed it
> recently the concept of "last" will not work.

That's right. "last" is interpreted in a different way in NetWorker 6.x
to what you would expect.

However, you can create:

nsradmin> create type: NSR schedule;
name: LastSundayofMonth;
period: Week;
action: skip;
override: full -1 sunday every -1 month
Create? y
created resource id 0.21.1.34.61.244.121.85.192.168.0.5(1)

That works. (BTW, you only have to specify "skip" once in that action
because NetWorker will take a smaller-than-period-days action list and
repeat it until it gets to the required number of days. Useful on a slow
link with a broken backspace!)

Cheers,

-Preston.

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

========================================================================================
This email message and attachments are confidential to our organisation and 
subject to legal privilege.  If you have received this email in error, please 
advise the sender immediately and destroy the message and any attachments. If 
you are not the intended recipient you are notified that any use, distribution, 
amendment, copying or any action taken or omitted to be taken in reliance of 
this message or attachments is prohibited.  You can read our Privacy Policy 
here: <http://www.asbbank.co.nz/privacystatement.stm>
=========================================================================================

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=