TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to sync Mac and Linux /home

5 pointsby Kortaggio9 months ago

2 comments

funcDropShadow9 months ago
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.<p>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.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;bcpierce00&#x2F;unison">https:&#x2F;&#x2F;github.com&#x2F;bcpierce00&#x2F;unison</a>
pavel_lishin9 months ago
I&#x27;ve got concerns about the --delete - since you&#x27;re copying-with-delete from desktop first, it automatically assumes that anything you put in &#x2F;home&#x2F;me on the mac is going to get blown away.
评论 #41422470 未加载