Pol Hallen:
>
> cat /etc/rsnapshot.conf
> [...]
>
> retain alpha 1
> retain beta 7
> retain gamma 12
> retain delta 10
alpha = daily
beta = weekly
gamma = monthly
delta = yearly?
> cat /etc/cron.d/rsnapshot
>
> 00 01 * * * root /usr/bin/rsnapshot alpha
> 30 3 * * * root /usr/bin/rsnapshot beta
alpha will be run daily at 01:00 am and beta daily at 03:30 am. Is this
what you want?
> 0 3 * * 1 root /usr/bin/rsnapshot gamma
This will be run every Monday at 03:00 ("weekly").
> 30 2 1 * * root /usr/bin/rsnapshot delta
This will be run on every first day of the month at 02:30 am.
You probably need something like this:
# Daily at 01:00 am
00 01 * * * root /usr/bin/rsnapshot alpha
# Weekly on every Monday at 03:30 am
30 3 * * 1 root /usr/bin/rsnapshot beta
# Monthly on every first day of the month at 03:00 am
0 3 1 * * root /usr/bin/rsnapshot gamma
# Yearly on January 1st at 02:30
30 2 1 1 * root /usr/bin/rsnapshot delta
You might want to tweak the times. You could also use sync_first which
makes this a little bit easier.
J.
--
Tony Blair is a hypnotised self-seeking scarecrow just like all the
rest.
[Agree] [Disagree]
<http://archive.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: PGP signature