News for hackers. Stuff that matters.
Re:Unison File Synchronizer by hughesjj on Wednesday February 07, 2024 @02:30PM (#39293084)
Unison was huge while I was at Amazon, but I always preferred rsync for the control (sshfs too but you had to ensure to set some flags for when you de-docked or changed wifi ap). One of the biggest gripes I had with it is thankfully fixed though (used to need same client and server version, nowadays they permit some drift assuming no breaking contractual changes).

I'd also recommend setting up some ignore rules for build artifacts, etc, which definitely increases complexity but avoids constantly syncing build artifacts you don't care about or with erroneous symlinks etc. IDK at that point I figured rsync was easier, as it's a more commonly used tool for other purposes, and I'd rather learn fewer things with huge functional overlap if given the choice.

Re:Unison File Synchronizer by vamega on Wednesday February 07, 2024 @02:38PM (#39293197)
Did you rsync in a loop? Or on demand?

I used Unison at Amazon, and it was the most seamless of all the options I tried. The two way sync was especially useful for being able to open up test results in a browser locally

Re:Unison File Synchronizer by frfl on Wednesday February 07, 2024 @04:44PM (#39294712)
You can write a script that uses the OS's native file watching system and triggers rsync. That's an approach I used and eventually everyone else on my team, not Amazon, also ended up using.

Wasn't very difficult to setup, on Linux at least.

Re:Unison File Synchronizer by hughesjj on Tuesday February 13, 2024 @01:55PM (#39361280)
On demand, which for me was a big reason to use rsync over unison. I preferred the control.

That said I was definitely in the minority, but eh