Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2009 19:21:08 -0400 (EDT)
From:      vogelke+unix@pobox.com (Karl Vogel)
To:        freebsd-questions@freebsd.org
Subject:   Re: location of user crontab files?
Message-ID:  <20090811232108.584B6B7B6@kev.msw.wpafb.af.mil>
In-Reply-To: <4d4e09680908110750s68cb93c3r1cad8277012920d5@mail.gmail.com> (message from Identry on Tue, 11 Aug 2009 10:50:54 -0400)

next in thread | previous in thread | raw e-mail | index | archive | help
>> On Tue, 11 Aug 2009 10:50:54 -0400, 
>> Identry <identry@gmail.com> said:

I> Where are user crontab files stored in the file system?  I want to make
I> sure this info is backed up.

   They're in /var/cron/tabs.  If you're using individual crontab files,
   be sure to rename /etc/crontab or you might have duplicated cronjobs
   running simultaneously.

   I use the file header beneath my signature for crontab files, so I
   don't forget what field goes where.  It's also handy to define an
   environment variable in case a program should behave differently when
   run under cron.

-- 
Karl Vogel                      I don't speak for the USAF or my company


# ====================================================================
# Everything on a line is separated by blanks or tabs.
# Set CRON so scripts know when they're being run non-interactively.
CRON=yes
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
# ====================================================================
#+--------------------------- Minute (0-59)
#|   +----------------------- Hour   (0-23)
#|   |     +----------------- Day    (1-31)
#|   |     |   +------------- Month  (1-12)
#|   |     |   |   +--------- Day of week (0-6, 0=Sunday)
#|   |     |   |   |    +---- Command to be run
#|   |     |   |   |    |
#v   v     v   v   v    v
# ====================================================================
# Jobs queued for later execution
*/5  *     *   *   *    /usr/libexec/atrun
# --------------------------------------------------------------------
# Do daily/weekly/monthly maintenance
1    3     *   *   *    periodic daily
10   22    *   *   *    periodic evening
15   4     *   *   6    periodic weekly
30   5     1   *   *    periodic monthly
..



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090811232108.584B6B7B6>