Rsync utilization every 5 seconds

Greger Cronquist greger_cronquist at yahoo.se
Wed Jul 2 23:38:52 EST 2003


A simple way would be to write an infinite loop shell script:


--------------------
#!/bin/bash

while [ 0 == 0 ]
do
  rsync ...
  sleep 5
done

-------------------

This, however, does not ensure that rsync is called every 5 seconds "on the 
clock", just that 5 seconds pass between two consecutive calls.

/Greger

On Wed, 2 Jul 2003 10:32:51 -0300, Mauro Nunes (SAO PAULO/EDB) 
<mauro.nunes at ericsson.com> wrote:

> Hi.
>
> I installed the rsync and I need it to run every 5 seconds between 2 
> machines.
>
> I was planning to use it in crontab, but this allows only every minute.
>
> I couldn´t find how to do it.
>
> Could someone explain me how to run rsync automatically every 5 seconds?
>
> Thanks in advance,
>
> Mauro
> --
> To unsubscribe or change options: 
> http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>






More information about the rsync mailing list