{"id":250,"date":"2016-03-09T16:23:45","date_gmt":"2016-03-09T15:23:45","guid":{"rendered":"http:\/\/104.198.79.120\/?p=250"},"modified":"2016-03-09T16:25:42","modified_gmt":"2016-03-09T15:25:42","slug":"upgrade-rsync-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/upgrade-rsync-on-mac-os-x\/","title":{"rendered":"Upgrade rsync on Mac OS X"},"content":{"rendered":"

By default, Apple decided to ship version 2.6.9 of rsync with Mac OS X 10.11 El Capitan. For the most part it gets the job done, however, not so long ago I came across the problem of having to sync directories between remote hosts that have whitespaces in their names. The usual “-s”<\/strong> parameter which I tend to use under Linux does the trick, but as it turns out it had been introduced in a later version of rsync, so in order for me to use it under OSX, an update was necessary.<\/p>\n

How should we do this? Well, first we’ll download the source tarball from the rsync website, unpack and compile it, after which we will move it to a location that is safe system-wise, meaning that future OS X updates won’t break our hard work.<\/p>\n

Download the lates source code from here:<\/p>\n

https:\/\/rsync.samba.org\/ftp\/rsync\/<\/a><\/p>\n

As of writing the current version is rsync-3.1.2.tar.gz<\/b>, but the steps should be future-proof for the most part.<\/p>\n

Hit up a Terminal and issue the following:<\/p>\n

cd ~\/Downloads\/ && tar -xzvf rsync-*?.tar.gz
\nrm rsync-*?.tar.gz
\ncd rsync-*?
\n.\/prepare-source
\n.\/configure
\nmake
\nmake install
\n<\/code><\/p>\n

Don’t forget to close your current terminal sessions, as the changes only take effect upon next login which is in our case the next time we open the Terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"

By default, Apple decided to ship version 2.6.9 of rsync with Mac OS X 10.11 El Capitan. For the most part it gets the job done, however, not so long ago I came across the problem of having to sync directories between remote hosts that have whitespaces in their names. The usual “-s” parameter which […]<\/p>\n","protected":false},"author":1,"featured_media":252,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/250"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":5,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/250\/revisions\/256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}