public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tanstaafl <tanstaafl@libertytrek.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Hows this for rsnapshot cron jobs?
Date: Sun, 21 Apr 2013 14:47:56 -0400	[thread overview]
Message-ID: <5174345C.9080304@libertytrek.org> (raw)

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


             reply	other threads:[~2013-04-21 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21 18:47 Tanstaafl [this message]
2013-04-21 20:32 ` [gentoo-user] Hows this for rsnapshot cron jobs? Alan McKinnon
2013-04-21 20:49   ` Tanstaafl
2013-04-22  7:26     ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5174345C.9080304@libertytrek.org \
    --to=tanstaafl@libertytrek.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox