[rescue] Speaking of backups, scripting division

Greg A. Woods woods at weird.com
Sun Nov 10 15:59:53 CST 2002


[ On Sunday, November 10, 2002 at 16:38:03 (-0500), Sheldon T. Hall wrote: ]
> Subject: Re: [rescue] Speaking of backups, scripting division
>
> > # (note that on BSD there's an additional "user" field in the system
> > # crontab file)
> > #
> > #minute hour mday month wday user command
> > #
> > */10 * * * * root /usr/libexec/atrun

you lost all the tabs, which makes the table really hard to read!  ;-)

> Ummm, that doesn't tell me the _date_ of the next scheduled backup; I'd like
> to have the real date so I can e-mail a reminder.

When do you want the reminder to appear?  The afternoon before?  An hour
before?  Just schedule another job to send it!

It's every day, at the same time of day, so the notify "script" need
only spew that value verbatim.  Cron can even do the mailing for you!

#minute	hour	mday	month	wday	user	command
#
00	16	*	*	3	root	echo "Next backup at 02:59 tonight!"
59	02	*	*	3	root	/usr/local/bin/backup_automatic


Personally I have:

# backups and stuff
30	12	*	*	*	amanda	/usr/local/sbin/amcheck -m DailySet1
45	3	*	*	*	amanda	/usr/local/sbin/amdump DailySet1


-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods at ieee.org>;           <woods at robohack.ca>
Planix, Inc. <woods at planix.com>; VE3TCP; Secrets of the Weird <woods at weird.com>



More information about the rescue mailing list