gokrazy / rsync

gokrazy rsync
BSD 3-Clause "New" or "Revised" License
517 stars 32 forks source link

Implement an rsync receiver, too #9

Open stapelberg opened 2 years ago

stapelberg commented 2 years ago

Currently, we only implement a sender (for serving files), but a receiver would be neat, too (for downloading files).

Left to do:

stapelberg commented 2 years ago

https://github.com/gokrazy/rsync/commit/d5a5b3defb3b1b49e795200e215823cd797371b6 lays the foundation.

Next up is actually writing files to disk.

stapelberg commented 2 years ago

https://github.com/gokrazy/rsync/commit/d1c307d7a3db853abb5b39de3a206303c4936f4f writes files to disk.

Next up is generating checksums / transferring deltas

prologic commented 1 year ago

@stapelberg Is this ready to go yet? This would be great for my backup/restore functionality 😅 I'm happy to help test your work!

stapelberg commented 1 year ago

@stapelberg Is this ready to go yet? This would be great for my backup/restore functionality sweat_smile I'm happy to help test your work!

The status in the commit messages and first comment of this issue is accurate. A receiver exists (so feel free to try it out!), but it doesn’t map user/group ids/names across machines.

prologic commented 1 year ago

@stapelberg Thanks! I actually did, however I decided to go with a completely different solution as I wasn't able to get what I had hoped working with gokr-rsyncd -- I think what's missing is (which is stated on the README) is receiver support in the daemon/server itself 🤔

stapelberg commented 1 year ago

Yes, the daemon doesn’t accept uploads yet.

kolkov commented 5 months ago

@stapelberg Hi! Can I already use this package to sync local directory on windows with linux server?

stapelberg commented 5 months ago

Depends on what kind of synchronization we’re talking about.

If you want to download files from a Linux server, yes.

If you want to do bi-directional synchronization: no. As I wrote in the previous message, the daemon does not accept uploads yet.