rsync icon indicating copy to clipboard operation
rsync copied to clipboard

provide and document rsync daemon/client as a library for use in other programs

Open CaledoniaProject opened this issue 2 years ago • 3 comments

Do you have examples on how to use this package as a rsync client? And it does not seem to be published on pkg.go.dev.

CaledoniaProject avatar Jun 24 '23 07:06 CaledoniaProject

Do you have examples on how to use this package as a rsync client?

The gokr-rsync program is a receiver (downloads files). Start at https://github.com/gokrazy/rsync/blob/main/cmd/gokr-rsync/rsync.go and navigate through the code.

Or did you mean something else? In rsync, sender and receiver are the preferred terminology, as client and server can both be either sender or receiver. So, describe in as much detail as possible what you’re looking for.

And it does not seem to be published on pkg.go.dev.

But it is published on pkg.go.dev? https://pkg.go.dev/github.com/gokrazy/rsync

stapelberg avatar Jun 24 '23 13:06 stapelberg

Thanks, I just want to integrate this library into my code (as a client). However, I checked the document, but there isn't much thing exposed right now.

CaledoniaProject avatar Jun 25 '23 01:06 CaledoniaProject

Yeah, we’d need a refactoring of the client bits into a library. Pull requests welcome :)

stapelberg avatar Jun 25 '23 06:06 stapelberg