I'd like to sync my home directory on two computers (laptop for travel, desktop at the office). Is unison still the best solution for that? Anything that I need to pay particular attention to? Any pitfalls that I need to watch out for? Last time I used unison was 10+ years ago. #ubuntu #linux
@normis @justine I set it up yesterday. Took some time but itβ€˜s looking really good so far.
@tmalsburg My recommendation would be Syncthing. I use it across all my systems to keep my home directories in sync. It has never failed me so far, it just works.

@tmalsburg I wouldn't play with syncing the whole home directory. You may have different versions of a same tool (your browser ?) which could not like to have config files overridden by a more recent version.

I use to sync a specific folder (named "Sync" !) which contains everything I want to be synced (mostly documents, personnal notes etc.).

For this pick the tool of your choice, like Syncthings, or Nextcloud, or even a simple rsync...

@tmalsburg Do you mean syncing when together as a one off or syncing continuously in the background? I use Owncloud for that and I've used syncthing in the past but it loves hammering CPU's.
@tmalsburg syncthings is great if you want realtime syncing either one way or both ways. I also use nextcloud, if you want to do more than just syncing.
@gewin Thank you! Syncthing looks pretty interesting. It also looks pretty low-barrier and easy to use. Almost hard to believe that it's also secure ;) Nextcloud is not an option because I don't have a server that I would trust to hold all my data and I don't want to run one myself.
@tmalsburg I’m daily using to synchronize 4-5 machines. And I still love it.
@joel That's great to hear. Just finished my initial sync which took some time. I suppose one has to be careful not to sync machine-specific files like configurations and caches. How do you deal with that?
@tmalsburg I use various configuration files. Some are for common data, some for limited specifics.
@tmalsburg i probably wouldn't sync whole home but if I did, probably syncthing?
@drizzy Yeah, it feels like a recipe for disaster. I'll start with the most important directories and will add to that step by step.
@drizzy I suppose the main benefit of syncthing is that it runs in the background and doesn't have to be actively managed? Anything else?

@tmalsburg It can deal with large amounts of data (either large files or tons of small files) really efficiently. It can do various sync types, use inotify to provide near real-time sync etc.

It can also punch through nat (though that can be turned off). Work on pretty much any platform (though mobile support is not great). You might want to setup monitoring to (desktop applet?) to see if it's not syncing so you don't create conflicts. Some directories will be very prone to conflicts.

@tmalsburg I moved most of my file syncing needs to syncthing. Mostly to add a new client if needed and to sync dot-files only to LXCs keeping them in sync (treating them as disposable).

It’s less of a one time sync when triggered and more Dropbox style which works better for me.

@tmalsburg I still use unison and anacron to do this. It works beautifully. All my devices run the same distribution, so I always use a compatible version.

@tmalsburg Have you tried #syncthing? I use it for most of my sync needs...

https://syncthing.net/

Syncthing