On Wed, Oct 03, 2007 at 12:00:26PM -0400, Campbell, Heather wrote:
> All,
> I am looking for some info on how to stop a backup group at a
> certain time each day. I'm looking for the proper syntax/coding for
> savepnpc, so I can use the "stop now" function along with a timeout
> setting to stop a group, if running, at 8AM each weekday.
Why savepnpc? That would be somewhat appropriate for stopping a
particular backup, or performing certain tasks after the backup
finishes, but not if you just want to stop a group every day.
If you want to do it at the same time of day every day, I'd probably
just use cron and do something like:
printf "type:nsr group;name: mygroup\nupdate stop now:True\n" | nsradmin -i -
and run that every day. This will only stop the group if it's fired
directly by the nsr system (scheduler, 'start' button, or nsradmin
request), but not if it was launched directly via 'nsrgrp'.
--
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 with 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
|