Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Remote File Differential

by twerq (Deacon)
on Nov 08, 2001 at 22:14 UTC ( [id://124117]=perlquestion: print w/replies, xml ) Need Help??

twerq has asked for the wisdom of the Perl Monks concerning the following question:

Dear fellow monks:

I have recently become interested in the concept of remote file differentials, similar to the network delta-encoding routines used by the fabulous rsync.

The idea is that you can create diffs between two files that are not necessarily in the same physical location, allowing you to synchronize only the differences between two files across a network.

rsync's methods have slowly been growing into their own library, librsync, which still seems fairly esoteric.

But as far as I know, these routines are just some sort of rolling-block checksum.

Has anybody done something similar with Perl? If not, what's the easiest way to create some sort of perl wrapper to these librsync functions?

--twerq

Replies are listed 'Best First'.
Re: Remote File Differential
by thinker (Parson) on Nov 09, 2001 at 15:27 UTC
    hi twerq,

    While I have not tried this myself, there's a perl wrapper to rsync available here.

    cheers

    thinker
Re: Remote File Differential
by tadman (Prior) on Nov 16, 2001 at 01:06 UTC
      Thanks for the help. Actually, I am very fimiliar with rsync (inside and out, you might say!) and have sort of outgrown it.

      What I was really looking for was the ability to have rsync functionality (remote file differentials) inside perl, without the need for the rsync binary.

      If anyone is interested, I have written an XS-based perl module around librsync, so I can do just that. I guess if anyone else cares about this kind of stuff I'll put it up on CPAN after some basic testing.

      Also, tadman -- on the side subject of web caching -- have you checked out rproxy? Very cool stuff.

      twerq. (dw)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://124117]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-06-14 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.