On Jan 24, 2008 3:53 AM, Antti Luoma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using ant 1.7.0 <sync> task to sync 2 very large directories. It
> currently takes too much time to do this (to be usable).

Sorry Antti, but there's no free lunch. Either you want to sync, in
which case you need to scan both the source and the destination
folders, or you don't. The whole point of sync is that things can
change in either folders, so you must scan them to know what.

<sync> uses a simple minded algo, using existing Java File APIs, which
aren't that fast, especially with remote file systems. I don't see how
to speed it up without compromising the goal of syncing things.

rsync OTOH is a much smarter approach, but relies on a client-server
approach where both the source and destination must be rsync-enabled
to be really fast (AFAIK), and not very win32-friendly (I could not
make it work with UNC paths for examples).

15 hours is a long time. That must be one mighty big folder... --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to