Hallo Jonathan Ryshpan,
Am Sonntag, 28. August 2011 00:11 schrieb Jonathan Ryshpan:
On Fri, 2011-08-26 at 19:45 +0200, Johannes Niess wrote:
I did not look at the do-snapshot script, but it looks like its "home
computing" functionality
What does that mean?
is covered by anacron and
its /etc/cron.(hourly,
Yes, it works. I tested that after I wrote do-rsnapshots.
But do-snapshots much easier to config, because you only have to (config
rsnapshot.conf and) put do-rsnapshots into your crontab once (!) to replace
"rsnapshot sync" or "rsnapshot hourly" or whatever your first backup is.
The rest is automatic.
do-rsnapshots looks into the rsnapshot.conf and the backup and runs first
every needed "rsnapshot yearly", "rsnapshot monthly", "rsnapshot weekly",
"rsnapshot daily", "rsnapshot hourly" and then "rsnapshot sync", if that is
activated.
You dont need anacron.
daily, weekly, monthly) scripts. It should be a standard part of your
distribution.
On Fedora, and (I suspect) many distros intended for home use, timed
events are run not by cron, but by anacron, which is invoked as
'anacron -s". This causes the jobs in /etc/anacrontab to be run
sequentially, so that their executions never overlap.
FYI: The man page for anacron is a little confusing about the order in
which jobs are run. When "anacron -s" is invoked, anacron waits (as
always) for delay minutes from its (anacron's) invocation before running
a particular job, also waiting till all other jobs are complete.
On my own system, I have edited /etc/crontab to read:
# /etc/anacrontab: configuration file for anacron
# See anacron(

and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22
#period in days delay in minutes job-identifier command
#these 3 commands are in the Fedora distro
< at > daily 5 cron.daily nice run-parts /etc/cron.daily
< at > weekly 15 cron.weekly nice run-parts /etc/cron.weekly
< at > monthly 25 cron.monthly nice run-parts /etc/cron.monthly
#these 3 commands added by Jon 06-Aug-2011
< at > monthly 35 snap.monthly nice /usr/bin/rsnapshot monthly
< at > weekly 45 snap.weekly nice /usr/bin/rsnapshot weekly
< at > daily 55 snap.daily nice /usr/bin/rsnapshot sync;
nice /usr/bin/rsnapshot daily
The last 3 lines cause rsnapshot to be run in the appropriate order
after the other functions, which are set up in the distro. So far, it
seems to be working OK.
--
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
Fingerprint=C025 3071 8E56 F8F1 250A 5624 F8DC 4193 5544 C89A
Analoge Uhr (clock):
http://www.heise.de/software/download/analoge_uhr/61872
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed.
http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss