I post it again (and the doc too), because its not in the archive
Why? ?
If its bad, tell me!!
Am Mittwoch, 1. September 2010 12:09 schrieb Rolf Muth:
do-rsnapshots: intelligent and fully automatic management for the
rsnapshot folders daily weekly monthly yearly
I use rsnapshot since 2006 with Suse Linux at my desktop and are very
happy to have it..
Many thanks to the developers.
Since 2010 I have a laptop with Suse Linux 11.2 unse rsnapshot-1.3.1.
I have in rsnapshot.conf
interval hourly 8
interval daily 7
interval weekly 4
interval monthly 12
interval yearly 100
becaus I want to hold on my old data.
In the crontab should be
0 * * * * /usr/bin/rsnapshot hourly
50 23 * * * /usr/bin/rsnapshot daily
40 23 * * 6 /usr/bin/rsnapshot weekly
30 23 1 * * /usr/bin/rsnapshot monthly
20 23 1 1 * /usr/bin/rsnapshot yearly
Since the laptop is not always running, its very unshure when the daily
weekly monthly und yearly backups are made
If it is not running after 23:00, there is no rsnapshot daily weekly
monthly oder yearly.
Therefore I wrote do-rsnapshots, so in the crontab is only
0 * * * * /usr/bin/do-rsnapshots
needed. (I prefer a nice, because I do not want to be disturbed in
whatever i am doing.)
0 * * * * nice /usr/bin/do-rsnapshots
do-rsnapshots is running instead of rsnapshot hourly and solves the
problem:
do-rsnapshots first reads the configuration file and then knows how many
updates should be there for each of daily weekly monthly or yearly.
Then it looks for the last monthly folder. If it exists, it looks for
yearly.0. If that does not exist or is not made in the same year as the
oldest monthly folder, rsnapshot yearly is called with all options from
the command line of do-rsnapshots.
Then the same is done with monthly weekly und daily.
Then is callen (rsnapshot sync if activated and) rsnapshot hourly with
all options from the command line of do-rsnapshots.
So the backup folders are automatically buld and managed.
Since all the actual work is done by rsnapshot, I hope, there are no new
bugs (exception see below).
It is also possible, to do different theings.
If you want to have one daily update for a whole year (huh
only the yearly ones, you ought to have in rsnapshot.conf
interval daily 366
interval yearly 100
it all goes automatically with
0 4 * * * /usr/bin/do-rsnapshots
in crontab. But I didnt test that.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
REQUIREMENTS:
Of course the bash has to be installed, also grep and the coreutils for
cat und cut
KNOWN BUGS
I didnt implement the args in man rsnapshot
SYNOPSIS
rsnapshot [-vtxqVD] [-c cfgfile] [command] [args]
If you have any bug reports or suggestions, please send mail to
rolf.muth < at > web.de
With kind regarts!
Rolf Muth
PGP Public Key fuer "Rolf Muth (inet)" auf http://pgp.mit.edu/
--
Herzliche Grüße!
Rolf Muth
Meine Adressen duerfen nicht fuer Werbung verwendet werden! PGP Public Key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF8DC41935544C89A
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
