From owner-freebsd-questions@FreeBSD.ORG Sat Jul 1 16:44:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34CA516A514 for ; Sat, 1 Jul 2006 16:44:11 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6FDC44075 for ; Sat, 1 Jul 2006 16:40:38 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k61GdO4w017177; Sat, 1 Jul 2006 11:39:46 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <44A6A532.9010409@daleco.biz> Date: Sat, 01 Jul 2006 11:39:14 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060623 SeaMonkey/1.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060701125532.GA11839@pythagoras.physics.upatras.gr> In-Reply-To: <20060701125532.GA11839@pythagoras.physics.upatras.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mplekos@physics.upatras.gr Subject: Re: Root crontab for backup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 16:44:11 -0000 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