Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
Unison might be worth a look, provides bidirectional merging and command-line operation. It's what I'd use if I were mostly working with binary files and didn't want a history.
Rsync, which someone else recommended, is really aimed at efficient unidirectional replication, not keeping two directories on computers that are both being changed and are intermittently connected in sync.
If there's mostly text and you're going to want to review changes, want to keep a history, and do a lot of merging, I'd use git, symlink files to aim at the git repo. I have a custom helper script, but stuff like GNU stow is aimed at this, and I'd probably recommend that someone look at it before rolling their own. Here's an example of someone using it with git in this role:
https://ratfactor.com/setup2
I agree with that guy about using bare git repos as the "master" copy, even if one of the machines in question also hosts the bare repos and technically you have some redundant information on it. Makes life easier, no machine is "special".
If I had both binary files (say, a music collection) that I wanted kept in sync without a history and text files that I do (say, my dotfiles), I'd use both.
Fantastic suggestions. Gives me some things to try. Thank you so much!