I think unison might work better.
hey thanks for the pointer! I have just come across Unison, it is quite heavy for my use case (different containerized setups), but it might come in handy in the future. Cheers!
2-way sync is very risky.
You can sync to your desktop once and then work from there with automated sync to a server using entr:
ls **/*.<extension> | entr rsync -avP . --exclude='.git' <hostname>:<path>
entr monitor the files passed to stdin and calls the command (rsync in this case) on change.
Also I’m planning to release a sync tool that is close to a filesystem in terms of sync speed.
See also Mutagen, a newer Unison-inspired sync software that sounds good: https://mutagen.io/
I haven’t used mutagen myself, as last I needed to do this it was a brand new project, but I’d certainly give it a look today.
thanks for the link! Looks more recent than Unison, but also a bit on the heavy side for my use case. But it might c
ome in handy!
You can combine sshfs and chironfs.
chironfs is interesting, but the problem with both sshfs and chironfs is that filesystem events won’t propagate between your copies. A lot of workflows for autobuild systems and change tracking in large repos need those FS events because polling/scanning is so expensive for large projects.
chironfs doesn’t seem maintained anymore.