Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Unison? – jasonwryan Jun 21 '12 at 9:38
Duplicate? unix.stackexchange.com/questions/12197/… – Marco Jun 21 '12 at 9:46

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.

share|improve this answer
I have used Unison myself too, really nice piece of software. – Not Available Jun 26 '12 at 6:32

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|improve this answer
rsync is not well suited for this, since it's uni-directional which makes it error-prone. – Marco Jun 21 '12 at 9:47

Personally I solved this with a NAS (Network Attached Storage). Solutions such as those by Synology (no I don't work there, or even own shares, I just like their product) allow you to use DyDNS services to allow continuous access. I had to solve this problem with 2 windows PCs, an Ubuntu Server, a Mac laptop, a Windows laptop, 2 smart phones and a tablet. It's been working swimmingly for me.

Hope that helps, let me know if you need more info.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.