Server Fault is a question and answer site for system and network administrators. 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

What's the easiest way to sync the contents of a folder on a Mac OSX machine with another folder on a Linux server?

You can use scp:

scp -r /path/to/folder/ username@IP_ADDRESS:/path/to/sync/with

But scp is slow and copies all files, regardless of whether or not they exist on the server. What are some other options?

share|improve this question
up vote 3 down vote accepted

install something like homebrew or macports to install rsync on the mac.. and use rsync

rsync -av /path/to/folder/ username@IP_ADDRESS:/path/to/sync/with
share|improve this answer
    
I am 99% sure that rsync has been included on OSX by default from since at least 10.2. I am certain that it is present by default on 10.4 and above. So unless he is running something insanely old, he has rsync already. – Zoredache Sep 15 '11 at 7:44

Would something like unison fit the bill here? It's sort of like rsync, but it allows two way synchronization.

Not sure if it's available on Mac OSX, but I'd think it would be..or could at least be built.

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.