Casey Bralla on 5 Jul 2010 09:46:10 -0700 |
I installed Debian stable on an old system I had lying around to be used as an rsync backup server. My backup routine is called as a cron job fron /etc/crontab. Oddly, none of the things I've entered into crontab execute. I can execute the scripts fine outside of crontab, but nothing seems to work from within it. For example, I added this line to test if it was working: 26 12 * * * root mkdir /test1 This should have created a new directory at 12:26 PM. it didn't. Checking syslog, I see this weird message: Jul 5 12:17:03 Backup /USR/SBIN/CRON[7125]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Jul 5 12:24:01 Backup /usr/sbin/cron[3363]: (*system*) RELOAD (/etc/crontab) Jul 5 12:25:01 Backup /usr/sbin/cron[3363]: (*system*) RELOAD (/etc/crontab) Jul 5 12:26:01 Backup /usr/sbin/cron[3363]: (*system*) RELOAD (/etc/crontab) Anybody have any ideas what this means? BTW, here is my complete /etc/crontab # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts -- report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts -- report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts -- report /etc/cron.monthly ) # # Run the backup routine every night at 12:01 AM 01 00 * * * root /etc/rsync/BackupDisks.py 26 12 * * * root mkdir /test1 -- Casey Bralla Chief Nerd in Residence The NerdWorld Organisation http://www.NerdWorld.org ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|