Rsync utilization every 5 seconds

Todd_Joseph at groove.net Todd_Joseph at groove.net
Wed Jul 9 21:52:35 EST 2003


If you insist on every 5 seconds:

--------------------------
#!/bin/sh

while :
do           rsync [opts] SRC DEST
      sleep 5
done
-----------------------------------------------------------------
Todd Joseph
Director, Network & Systems Architecture
Groove Networks
P: 978-720-2129
mailto:todd_joseph at groove.net



|---------+----------------------------------------------------------->
|         |           "Tillman, James" <JamesTillman at fdle.state.fl.us>|
|         |           Sent by:                                        |
|         |           rsync-bounces+todd_joseph/groove=groove.net at list|
|         |           s.samba.org                                     |
|         |                                                           |
|         |                                                           |
|         |           07/02/2003 09:41 AM                             |
|         |                                                           |
|---------+----------------------------------------------------------->
  >----------------------------------------------------------------------------------------------|
  |                                                                                              |
  |       To:       "'rsync at lists.samba.org'" <rsync at lists.samba.org>                            |
  |       cc:                                                                                    |
  |       Subject:  RE: Rsync utilization every 5 seconds                                        |
  >----------------------------------------------------------------------------------------------|




Every 5 seconds seems a bit excessive in terms of CPU utilization and
network bandwidth.  Are you trying to ensure close-to-real-time
synchronization by doing this?  If you have the ability to run processes on
the source machine, perhaps running a process that monitors the source
directory for changes and then runs rsync when changes occur would reduce
overhead?

Others with more experience may have better ideas.

jpt

> -----Original Message-----
> From: Mauro Nunes (SAO PAULO/EDB) [mailto:mauro.nunes at ericsson.com]
> Sent: Wednesday, July 02, 2003 9:33 AM
> To: 'rsync at lists.samba.org'
> Subject: Rsync utilization every 5 seconds
>
>
> 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
>
--
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