Super User is a question and answer site for computer enthusiasts and power users. 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

I want to be able to synchronise files between 2 remote computers in both directions. Say for example that I want to synchronise my /home/Documents directory with <username>@example.com:/home/Documents

What's the easiest way to update the folders in both directions, so that new/updated files on my home computer get transferred to the remote computer, and new/updated files on the remote computer get transferred to my home computer?

share|improve this question

You can use Unison. Here are some guides:

share|improve this answer
    
I no longer use Linux on a day to day basis, but a few years ago when I did Unison was my choice for sync functionality of home dir. – mindless.panda Jun 25 '11 at 22:14
    
@mindless.panda What are you using for syncing today? – N.N. Jun 25 '11 at 22:17

I use rsync (over ssh), just because it's easy and simple.

To sincronize two ways, you can do two commands, like this:

rsync --recursive --progress --partial --rsh=ssh /home/Documents <username>@example.com:/home/Documents
rsync --recursive --progress --partial --rsh=ssh <username>@example.com:/home/Documents /home/Documents

EDIT: I've just remembered somebody suggesting duplicity at a sprint. As the home page states, duplicity is an "encrypted bandwidth-efficient backup using the rsync algorithm".

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .