Dave Dykstra <[EMAIL PROTECTED]> wrote:
> On Thu, May 31, 2001 at 03:29:42PM -0700, Adam McKenna wrote:
> ...
> >
> > So, is there any way to have rsync skip certain files, if they are not
> > complete? There doesn't appear to be any obvious way to do this. Could
> > the rsync process be the reason that these transfers are not finishing
> > correctly?
> >
> > Thanks for any and all input.
> >
> > CC's would be appreciated as I am not a list subscriber -- but I will be
> > checking the archive as well.
>
>
> There is really no way around that problem with rsync. Many other people
> have tried to do similar things and the wisdom on the mailing list has
> always been that rsync via cron is the wrong tool for applications that
> have data that changes frequently and needs to be replicated very soon
> after it changes. You need something more like a distributed database or a
> replicating filesystem, or at the very least call rsync in a synchronous
> manner right after a file has been changed and before the file can change
> again.
That was kind of what I was thinking.
As a VERY minimum, you need to be sure the previous rsync is not
running when the next one starts, so the fast cron job either
needs some careful work done to insure that, or you should change
it like Dave suggests, or perhaps do the right thing and get
some kind of remote mirroring set up.
I did a search on freshmeat, and these look amusing, anyway:
http://freshmeat.net/projects/rsynchelper/
http://freshmeat.net/projects/yokelinuxkerneldriver/
http://freshmeat.net/projects/pushsite/
http://freshmeat.net/projects/mirrordir/
http://freshmeat.net/projects/drbd/
The first one is an rsync helper app, which may or may not be useful
for what you want to do. the others (especially mirrordir and drbd)
look more like what you want, maybe.
Good luck!
rc
Rusty Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621 SnailMail: Schlumberger ATE
FAX: (480) 345-8793 7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
ICBM: 33 20' 44"N 111 53' 47"W