Last active
November 9, 2017 07:35
-
-
Save luanvuhlu/76e966c43833e218bb751564fcf103b9 to your computer and use it in GitHub Desktop.
How to install & compile rsync on Mac OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Compile rsync 3.1.2 | |
#Follow these instructions in Terminal on both the client and server to download and compile rsync 3.1.2: | |
#Download and unarchive rsync and its patches | |
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz | |
tar -xzvf rsync-3.1.2.tar.gz | |
rm rsync-3.1.2.tar.gz | |
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.1.2.tar.gz | |
tar -xzvf rsync-patches-3.1.2.tar.gz | |
rm rsync-patches-3.1.2.tar.gz | |
cd rsync-3.1.2 | |
#Apply patches relevant to preserving Mac OS X metadata | |
patch -p1 <patches/fileflags.diff | |
patch -p1 <patches/crtimes.diff | |
patch -p1 <patches/hfs-compression.diff | |
#Configure, make, install | |
./prepare-source | |
./configure | |
make | |
sudo make install | |
#Verify your installation | |
/usr/local/bin/rsync --version | |
#By default, rsync will be installed in /usr/local/bin. | |
#If that isn't in your path, you will need to call your new version of rsync by its absolute path (/usr/local/bin/rsync). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment