What is a good tool to sync two computers

12,970

Solution 1

There is one tool, that goes beyond rsync, which personally I think is one of the best syncing tools out there, and that is Unison.

I should point out though, that a total 1:1 copy of one machine and the other, is probably not the best idea, since those are two different computers, etc.

Syncing document folders, however is easily done with rsync or unison. another option would be using git repositories for not only projects, but things like config files and other documents. Since this is a decentralized system, you don't need servers to sync to, etc.

Partially syncing your $HOME directory should be no problem, just look out for things like Gnome configs, etc. In essence, you should carefully decide, what to sync and what not.

Solution 2

Your best bet(I think) would be manually specifying what config files, folders, etc. need to be synced. And then indeed running an rsync or other synchronization program/tool.

Share:
12,970

Related videos on Youtube

GeekPeek
Author by

GeekPeek

Studied Physics, doing Software now.

Updated on September 18, 2022

Comments

  • GeekPeek
    GeekPeek over 1 year

    At home I've got a pc tower running arch linux. Recently I also acquired laptop for on the road, but I'd like to be working on the pc tower when I'm at home.

    Now I'm pretty sensitive as to how my machine is configured (that's why I need the laptop, I hate the windows 7 stations at my university). I was wondering if there is a way to synchronize these two machines? I would like these to be "exact" clones of each other, so I could seemlesly switch from one to the other (after the sync of course).

    I was thinking about using rsync but I don't know if that's the best option. If so, what should I be careful of? Are there any good tutorials out there?

    Also, if possible, I would also like the use the home pc as a website server, so there are some sections of the machine that need not be synced (namely the website's directories).

    Just to be clear: both computers will be running Arch Linux.

  • Marco
    Marco almost 12 years
    rsync is not well suited for this, since it's uni-directional which makes it error-prone.
  • J.C.
    J.C. over 7 years
    I've stopped using unison for two reasons. The most important is that the timestamps on the directories (and files if using default settings) will not be the same on each computer. The other reason is that each computer must have the same version of unison. This might not seem like a big deal, but my work computer often lags behind my laptop when it comes to updates and I've had unison refuse to sync.
  • Giorgio
    Giorgio over 5 years
    @equant: I also stopped using unison because of the missing timestamp synchronization. I asked the author of the program about this feature but it is not easy to add and it won't be implemented in the near future. Otherwise, unison would have been the ideal tool for me.