single file mirror, minimal data transfer.

IvorW combobulus at xemaps.com
Thu Jun 22 10:48:53 BST 2006



> -----Original Message-----
> From: ant at badmagic.com [mailto:ant at badmagic.com]
> Sent: 22 June 2006 10:30
> To: london.pm at london.pm.org
> Subject: single file mirror, minimal data transfer.
> 
> 
> 
> 
> Hi,
> 
> I am looking for a module that performs local mirroring of a 
> remote file using minimal data transfer.
> 
> I am parsing a log file that is stored on a remote server 
> (windows) several times an hour, and I want to fetch a local copy. 
> 
> I can cobble something up using seek, but I am hoping 
> something more elegant/tested already exists.  The remote 
> file grows and then is shortened as it rolls over. If the 
> remote file is smaller than my local copy I need to trash my 
> local copy. If the remote file is larger than my local copy I 
> can assume it is just an appended version of my local copy. I 
> am not worried about checksumming the remote copy up to the 
> size of my local copy.
> 
> cheers
> Ant 'avoiding-rolling-his-own-since-1970' M.

File::RsyncP might be a good start. Let me know if this does the trick, as I'm interested for something I am working on.

Ivor.


More information about the london.pm mailing list