Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Jul 2006 11:39:14 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        freebsd-questions@freebsd.org
Cc:        mplekos@physics.upatras.gr
Subject:   Re: Root crontab for backup
Message-ID:  <44A6A532.9010409@daleco.biz>
In-Reply-To: <20060701125532.GA11839@pythagoras.physics.upatras.gr>
References:  <20060701125532.GA11839@pythagoras.physics.upatras.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Kostas Blekos wrote:
>  
>  Is it a bad idea to use root's crontab for backup scripts?
> Is it better to put those scripts in periodic/... ? 

I can't think of any particular reason why it's bad; it's
the way I've always done it.  Mistakes I've made *might* have
been mitigated somewhat by placing them there; for example:

#min hr day mon wday command

15   03  *   *   *  /sbin/dump -L -0 -a -f - /usr | (cd /3;
/sbin/restore -ruvf - )

with "-v" and without a "> /dev/null 2>&1" was a big problem
(took a good while to dl root's email that day) :-D

The major advantage of periodic would be the built-in logging
functionality, should you choose to use it; cron's
advantage would be in flexibility (in regard to both
time assignment and script requirements).

My $.02,

Kevin Kinsey

-- 
The world is moving so fast these days that the man who says
it can't be done is generally interrupted by someone doing it.
		-- E. Hubbard



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