From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5E1AA1381F3 for ; Sun, 21 Apr 2013 18:48:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88EE6E0881; Sun, 21 Apr 2013 18:48:19 +0000 (UTC) Received: from homiemail-a80.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CE32E080A for ; Sun, 21 Apr 2013 18:48:18 +0000 (UTC) Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id AE02237A06F for ; Sun, 21 Apr 2013 11:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=libertytrek.org; h= message-id:date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=libertytrek.org; bh=jBNmjvGCna46Hao Ckcy+GoNiK4c=; b=HRVm6xG9oQ2wvZRDcC712itZ03jBP94fprvp1uE2I+qCjHu rP41KHKBCxvdq5Ir6rouRfdi0XNtg6GabWzPpbo6/MJz5N0JEogKISX0RV1wtxug zKraeAvhxt0IVgBqwk5GiHsAvLLqArgTvmDUerDazJCBL9P5Sq3SwsbQXaYA= Received: from [127.0.0.1] (unknown [159.63.145.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tanstaafl@libertytrek.org) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id 87E7037A065 for ; Sun, 21 Apr 2013 11:48:17 -0700 (PDT) Message-ID: <5174345C.9080304@libertytrek.org> Date: Sun, 21 Apr 2013 14:47:56 -0400 From: Tanstaafl User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Hows this for rsnapshot cron jobs? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 02dc96f6-9f56-441b-991e-1ebd186ff9bc X-Archives-Hash: 215cfaf202a82d656d3d8a217dd7fcb7 Ok, my goal is to keep 3 'snapshots' per day (11:30am, 2:30pm and 5:30pm), 7 daily's (8:50pm), 4 weekly's (8:40pm), 12 monthly's (8:30pm), and 5 yearly's (8:20pm). My myhost1.conf has: interval hourly 3 interval daily 7 interval weekly 4 interval monthly 12 interval yearly 5 And my /etc/crontab now looks like: > # for vixie cron > # $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4,v 1.3 2011/09/20 15:13:51 idl0r Exp $ > > # Global variables > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > > # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly > 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly > 9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily > 19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly > 29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly > */10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons > # > # rsnapshot cronjobs > # > 30 11,14,17 * * * root rsnapshot -c /etc/rsnapshot/myhost1.conf sync; rsnapshot -c /etc/rsnapshot/myhost1.conf hourly > 50 20 * * * root rsnapshot -c /etc/rsnapshot/myhost1.conf daily > 40 20 * * 6 root rsnapshot -c /etc/rsnapshot/myhost1.conf weekly > 30 20 1 * * root rsnapshot -c /etc/rsnapshot/myhost1.conf monthly > 20 20 1 * * root rsnapshot -c /etc/rsnapshot/myhost1.conf yearly Does this look right? Thanks