backup script

Jianping Zhu zjp at arches.uga.edu
Tue Dec 10 21:55:59 EST 2002


Thank you very much for your advice.
I have one more question about crontab

My ect/crontab is" ------------------------------------- 
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root 
HOME=/ 
# run-parts
01 * * * * root run-parbs ietc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4=1 * * root run-parts /etc/cron.monthly
00,05,10,15,20,25,30,35,40,45,50 * * * * (echo "";date)>/dev/console
--------------------------------------------------------------------------
The last line is suppseed to print date to screen every 5 minutes, but it
does not do that. why?

Thanks  


On Tue, 10 Dec 2002, Erik Max Francis wrote:
> Jianping Zhu wrote:
> 
> [Now completely off-topic for comp.lang.python.]
> 
> > Thank you for your reply!
> > Because i have several dictories need to be backup, I want to write a
> > script do it automatically  say every Satuerday a 2:00am. is there a
> > way
> > to do that?
> 
> Put in a cron job.
> 
> 	man crontab
> 
> Type
> 
> 	crontab -e
> 
> and when your editor comes up, put in a line like
> 
> 	0 2 * * sat     /path/to/backupscript
> 
> In some versions of cron, you'll have to specify the day of the week
> numerically; check the crontab man page for more information.
> 
> -- 
>  Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
>  __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
> /  \ Insight -- the titillating knack for hurting!
> \__/ Colette
>     The laws list / http://www.alcyone.com/max/physics/laws/
>  Laws, rules, principles, effects, paradoxes, etc. in physics.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 


--------------------------------
Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900
--------------------------------





More information about the Python-list mailing list