Easiest way to sync two folders

12,235

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:
12,235

Related videos on Youtube

summatix
Author by

summatix

Updated on September 18, 2022

Comments

  • summatix
    summatix over 1 year

    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?

  • Zoredache
    Zoredache over 12 years
    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.