Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

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.