Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 17753 invoked by uid 500); 28 Sep 2001 13:02:01 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 17728 invoked from network); 28 Sep 2001 13:02:00 -0000 Message-ID: <502326F46B08D41191C400508B6D70C10235C610@nvision01.rubus.com> From: Les Hughes To: "'ant-user@jakarta.apache.org'" Subject: RE: cross-platform rsync? Date: Fri, 28 Sep 2001 13:59:03 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1481D.59ADD320" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1481D.59ADD320 Content-Type: text/plain; charset="iso-8859-1" I have a similar problem which I haven't needed to solve - yet. But rsync 2.4.6 looks like it's included in the cygwin 1.3.3 distro (well the installer's asking me if I want to install it...). You only need the exe and cygwin.dll on your W2K boxes I think and it *could* be easy enough to roll into an Ant task as well maybe. Sorry to not be more specific - I'll post details of how I get on over the next few weeks. Les -----Original Message----- From: Eric Smith [mailto:Eric@discoveryworld.co.za] Sent: 28 September 2001 08:32 To: 'ant-user@jakarta.apache.org' Subject: RE: cross-platform rsync? copy doesn't really 'sync' since files in the source tree that have been deleted aren't correspondingly deleted in the destination (and empty directories aren't 'pruned'). rsync is specifically geared to doing fast sync's by virtue of a delta algorithm (whereas copy only looks at the timestamp). Other than the above though, copy would be a neat solution. --Eric -----Original Message----- From: Bevan Arps [mailto:bevan.arps@actfs.co.nz] Sent: 27 September 2001 10:56 PM To: ant-user@jakarta.apache.org; 'ant-user@jakarta.apache.org' Subject: Re: cross-platform rsync? At 13:23 27/09/2001 +0200, Eric Smith wrote: My question is: Is there a 'clean' cross-platform solution (obviously preferably based in Java) for syncing files across file systems? Ahh - perhaps I'm missing something here. You say that the files are available on a Unix share - why not use the built in copy task to do the synchronize? It includes smarts to only copy when necessary: >From the Ant Manual, on Copy: "Copies a file or Fileset to a new file or directory. Files are only copied if the source file is newer than the destination file, or when the destination file does not exist. However, you can explicitly overwrite files with the overwrite attribute." I've been using this to "synch" directories and it works very quickly, only copying changed files. Cheers, Bevan. -- "Programming is an Art Form that Fights Back" Bevan Arps ( bevan.arps@actfs.co.nz ) Senior OO Analyst, ACT Financial Systems This communication is confidential to ACT Financial Systems (Asia Pacific) and is intended for use only by the addressee. The views and opinions expressed in this email are the senders own and do not represent the views and opinions of ACT Financial Systems (Asia Pacific). ------_=_NextPart_001_01C1481D.59ADD320 Content-Type: text/html; charset="iso-8859-1"
I have a similar problem which I haven't needed to solve - yet. But rsync 2.4.6 looks like it's included in the cygwin 1.3.3 distro (well the installer's asking me if I want to install it...). You only need the exe and cygwin.dll on your W2K boxes I think and it *could* be easy enough to roll into an Ant task as well maybe.
 
Sorry to not be more specific - I'll post details of how I get on over the next few weeks.
 
Les
 
-----Original Message-----
From: Eric Smith [mailto:Eric@discoveryworld.co.za]
Sent: 28 September 2001 08:32
To: 'ant-user@jakarta.apache.org'
Subject: RE: cross-platform rsync?

copy doesn't really 'sync' since files in the source tree that have been deleted aren't correspondingly deleted in the destination (and empty directories aren't 'pruned').
 
rsync is specifically geared to doing fast sync's by virtue of a delta algorithm (whereas copy only looks at the timestamp).
 
Other than the above though, copy would be a neat solution.
 
--Eric
-----Original Message-----
From: Bevan Arps [mailto:bevan.arps@actfs.co.nz]
Sent: 27 September 2001 10:56 PM
To: ant-user@jakarta.apache.org; 'ant-user@jakarta.apache.org'
Subject: Re: cross-platform rsync?

At 13:23 27/09/2001 +0200, Eric Smith wrote:

My question is:  Is there a 'clean' cross-platform solution (obviously preferably based in Java)
for syncing files across file systems?

Ahh - perhaps I'm missing something here.

You say that the files are available on a Unix share - why not use the built in copy task to do the synchronize? It includes smarts to only copy when necessary:

From the Ant Manual, on Copy:

"Copies a file or Fileset to a new file or directory. Files are only copied if the source file is newer than the destination file, or when the destination file does not exist. However, you can explicitly overwrite files with the overwrite attribute."

I've been using this to "synch" directories and it works very quickly, only copying changed files.

Cheers,
Bevan.

--

"Programming is an Art Form that Fights Back"

Bevan Arps (bevan.arps@actfs.co.nz)
Senior OO Analyst, ACT Financial Systems

This communication  is confidential  to ACT  Financial  Systems  (Asia Pacific)  and is intended for  use only by the  addressee.   The  views and opinions  expressed in  this email  are the senders  own and do not represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia Pacific).

------_=_NextPart_001_01C1481D.59ADD320--