News for hackers. Stuff that matters.
Re:How to sync Mac and Linux /home by pavel_lishin on Sunday September 01, 2024 @10:33PM (#41422169)
I've got concerns about the --delete - since you're copying-with-delete from desktop first, it automatically assumes that anything you put in /home/me on the mac is going to get blown away.
Re:How to sync Mac and Linux /home by djaouen on Monday September 02, 2024 @12:02AM (#41422470)
Isn't that the point of making it `/Users/me/me`?
Re:How to sync Mac and Linux /home by pavel_lishin on Monday September 02, 2024 @09:57AM (#41425420)
I guess if you never put anything in `/Users/me/me` on your mac, and only ever treat it as a mirror of your desktop?
Re:How to sync Mac and Linux /home by funcDropShadow on Monday September 02, 2024 @07:26AM (#41424453)
This setup eats your freshly created files if you forget to run the rsync command before switching to the other computer. Not so nice. Unison [1] can avoid that problem by having some state on each side. Therefore, it always knows whether a file was just created on machine A or whether it was deleted on machine B.

Everything else is almost the same with Unison compared to rsync. There is no P2P overlay network, everything goes through ssh. It uses the rsync algorithm to optimize the transfer of changes. It is run at specific times, not always in the background. Therefore, you know when synchronization is happening and when it is finished. Unison also has rules to map different path on each side and you can exclude by path, filename, and suffix, etc.

[1]: https://github.com/bcpierce00/unison