rsync

rsync

am 28.01.2007 20:53:05 von sgovindachar

Hello,

I have not been able to find an implementation of rsync
functionality using lwp. If anyone knows of one, please point me
to it. Else, would appreciate any pointers on creating a
"lwp-rsync".

Thanks,

--Suresh

Re: rsync

am 28.01.2007 20:57:58 von Andy

On 28 Jan 2007, at 19:53, Suresh Govindachar wrote:
> I have not been able to find an implementation of rsync
> functionality using lwp. If anyone knows of one, please point me
> to it. Else, would appreciate any pointers on creating a
> "lwp-rsync".

I think you'd need to start here:
http://search.cpan.org/~cbarratt/File-RsyncP-0.52/lib/File/R syncP.pm

Or maybe here:
http://search.cpan.org/~leakin/File-Rsync-0.42/Rsync.pm

Disclaimer: I haven't used either module

--
Andy Armstrong, hexten.net

Re: rsync

am 28.01.2007 21:29:42 von sgovindachar

On Sun, 28 Jan 2007 19:57:58 +0000 Andy Armstrong wrote:
> On 28 Jan 2007, at 19:53, Suresh Govindachar wrote:
>
>> I have not been able to find an implementation of rsync
>> functionality using lwp. If anyone knows of one, please point
>> me to it. Else, would appreciate any pointers on creating a "lwp-
>> rsync".
>
> [suggesting looking at RsyncP.pm andRsync.pm with the disclaimer
> that he hasn't used either module.]

The two suggested modules are interfaces to rsysn.
However, I am looking for a replacement to rsync written
in perl. (Similar to how lwp-rget is a replacement for
wget http://en.wikipedia.org/wiki/Wget.)

--Suresh

Re: rsync

am 28.01.2007 21:40:46 von Andy

On 28 Jan 2007, at 20:29, Suresh Govindachar wrote:
>> [suggesting looking at RsyncP.pm andRsync.pm with the disclaimer
>> that he hasn't used either module.]
>
> The two suggested modules are interfaces to rsysn.
> However, I am looking for a replacement to rsync written
> in perl. (Similar to how lwp-rget is a replacement for
> wget http://en.wikipedia.org/wiki/Wget.)

Unless I'm misreading the source (which is entirely possible)
RsyncP.pm is an implementation of the rsync protocol in Perl + XS.

Rsync.pm is indeed just a wrapper around the rsync binary.

--
Andy Armstrong, hexten.net

Re: rsync

am 29.01.2007 14:34:18 von merlyn

>>>>> "Suresh" == Suresh Govindachar writes:

Suresh> I have not been able to find an implementation of rsync
Suresh> functionality using lwp.

Although there have already been a series of answers, I think they
missed this statement.

Do you want:

(a) something *like* rsync that fetches things using http? (Note that this
would not be possible IN GENERAL.)

or

(b) something that fetches things from an rsyncd using rsync protocol (not
HTTP) but doesn't use rsync(1)?

The protocols are radically incompatibly different, so I'm wondering what you
meant in your opening statement. And since LWP is about option A there,
that's really the only thing appropriate for this list (and it's also the
harder/impossible problem).

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!