{"id":1186,"date":"2006-01-16T14:53:42","date_gmt":"2006-01-16T19:53:42","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/2006\/01\/16\/fixing-rsync-on-tiger\/"},"modified":"2019-12-19T14:59:16","modified_gmt":"2019-12-19T19:59:16","slug":"fixing-rsync-on-tiger","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2006\/01\/16\/fixing-rsync-on-tiger\/","title":{"rendered":"Fixing rsync on Tiger"},"content":{"rendered":"<p>\nMac OS X 10.4.4 recently shipped, and yet after four OS updates <tt>rsync<\/tt> is still broken. It frequently crashes when using the <tt>-E\/--extended-attributes<\/tt> option, it doesn&rsquo;t preserve the modification dates of files with resource forks, and it copies all the extended attributes even if they haven&rsquo;t changed.\n<\/p>\n\n<p>\n<a href=\"http:\/\/www.lartmaker.nl\/rsync\/\">J.D. Bakker<\/a> comes to the rescue with a patch that claims to fix the most severe problems. He&rsquo;s written clear instructions for how to apply it, and <em>it seems to work<\/em>. At last, it looks like I&rsquo;ll be able to keep my PowerBook synchronized.\n<\/p>\n\n<p>\nActually, the first few times I tried it, it didn&rsquo;t work. I kept getting these errors:\n<\/p>\n\n<pre>\nrsync error: protocol incompatibility (code 2) at sender.c(59)\nrsync: fstat failed: No such file or directory (2)\n<\/pre>\n\n<p>\nand on different files each time. <a href=\"http:\/\/www.macosxhints.com\/article.php?story=20051104185525439&amp;lsrc=osxh\">Mac OS X Hints<\/a> suggested disabling Spotlight, and that stopped the errors. I would have thought that Spotlight should be disabled on the target volume, since it was the one being modified, however I found that it was necessary to disable it on the source volume. Then it worked.\n<\/p>\n\n<p>\nFor this and other reasons, I seem destined to always have Spotlight\nturned off. Thus, I really appreciate it when developers don&rsquo;t <em>rely<\/em> on Spotlight being available. It&rsquo;s cool if you make your app&rsquo;s data available to Spotlight, but I shouldn&rsquo;t have to turn on Spotlight to search from within your app.\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Mac OS X 10.4.4 recently shipped, and yet after four OS updates rsync is still broken. It frequently crashes when using the -E\/--extended-attributes option, it doesn&rsquo;t preserve the modification dates of files with resource forks, and it copies all the extended attributes even if they haven&rsquo;t changed. J.D. Bakker comes to the rescue with a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-01-04T20:34:19Z","apple_news_api_id":"c79f2421-532a-4e7c-a5de-c6f0164023c1","apple_news_api_modified_at":"2019-12-19T19:59:20Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/Ax58kIVMqTnyl3sbwFkAjwQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1902,30,926,1771],"class_list":["post-1186","post","type-post","status-publish","format-standard","hentry","category-technology","tag-extended-attributes","tag-mac","tag-mac-os-x-10-4-tiger","tag-rsync"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=1186"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1186\/revisions"}],"predecessor-version":[{"id":8634,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1186\/revisions\/8634"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}