{"id":381,"date":"2018-11-14T14:21:00","date_gmt":"2018-11-14T14:21:00","guid":{"rendered":"https:\/\/www.weeklywhinge.com\/?p=381"},"modified":"2018-11-14T14:21:00","modified_gmt":"2018-11-14T14:21:00","slug":"rsync-error-protocol-incompatibility-code-2","status":"publish","type":"post","link":"https:\/\/www.weeklywhinge.com\/?p=381","title":{"rendered":"rsync error: protocol incompatibility (code 2)"},"content":{"rendered":"<p>I needed to push a lot of files from a (very) old server (RHEL3) to a newer one (RHEL7). rsync seemed like a smart choice, because I will need to rerun the command to push any updated files at a later date.<\/p>\n<p>&nbsp;<\/p>\n<p>Problem is, rsync complains<\/p>\n<pre>\r\nrsync error: protocol incompatibility (code 2) at compat.c(62)<\/pre>\n<p>&nbsp;<\/p>\n<p>There are loads of webpages suggesting this is a problem with your .bashrc outputting text when it shouldn&#8217;t, but in my case that wasn&#8217;t it; turns out rsync rather stupidly uses the latest protocol version without checking to see if both ends will support it. The new version on the target machine was blithely talking a version that the old version wouldn&#8217;t run.<\/p>\n<p>&nbsp;<\/p>\n<p>Anyway, to cut a long story short, adding<\/p>\n<p>&nbsp;<\/p>\n<pre>--rsync-path=\"rsync --protocol=30\"<\/pre>\n<p>&nbsp;<\/p>\n<p>to the rsync command line worked for me.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to push a lot of files from a (very) old server (RHEL3) to a newer one (RHEL7). rsync seemed like a smart choice, because I will need to rerun the command to push any updated files at a later date. &nbsp; Problem is, rsync complains rsync error: protocol incompatibility (code 2) at compat.c(62) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=381"}],"version-history":[{"count":1,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":382,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions\/382"}],"wp:attachment":[{"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weeklywhinge.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}