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?

link|improve this question

48% accept rate
feedback

2 Answers

You can use Unison. Here are some guides:

link|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
feedback

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".

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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