{"id":1637,"date":"2009-03-03T10:47:07","date_gmt":"2009-03-03T15:47:07","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=1637"},"modified":"2009-03-03T10:47:07","modified_gmt":"2009-03-03T15:47:07","slug":"backing-up-and-verifying-files-in-mac-os","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2009\/03\/03\/backing-up-and-verifying-files-in-mac-os\/","title":{"rendered":"Backing up and verifying files in Mac OS"},"content":{"rendered":"<p>There are some interesting backup tools for system backups (Time Machine) but I want to just be able to copy and verify a directory (and its children).\u00c2\u00a0 I&#8217;ve heard that the commercial product Retrospect provides copy and verify functionality, but I&#8217;m cheap.<\/p>\n<p>This is the method that I used.\u00c2\u00a0 I&#8217;d be interested on hearing feedback about it:<\/p>\n<blockquote>\n<pre># Copy the files using ditto \u0010\u0010\r\n$ ditto \/Volumes\/Backup\/columbus_da\u0010\/ \/Volumes\/ghingexternal\/columbus_da\r\n\r\n# Get md5s for the original and copied files\r\n$ find \/Volumes\/ghingexternal\/columbus_day\/ -exec md5 '{}' \\; &gt; md5s-new.txt\r\n$ find \/Volumes\/Backup\/columbus_day\/ -exec md5 '{}' \\; &gt; md5s-old.txt\r\n\r\n# Strip out the directory prefix from the md5 files\r\n$ mv md5s-old.txt md5s-old.txt.bak\r\n$ mv md5s-new.txt md5s-new.txt.bak\r\n$ sed 's\/\\\/Volumes\\\/ghingexternal\\\/\/\/' md5s-new.txt.bak &gt; md5s-new.txt\r\n$ sed 's\/\\\/Volumes\\\/Backup\\\/\/\/' md5s-old.txt.bak &gt; md5s-old.txt\r\n\r\n# Compare the md5s of the copied files\r\n$ diff md5s-old.txt md5s-new.txt<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>There are some interesting backup tools for system backups (Time Machine) but I want to just be able to copy and verify a directory (and its children).\u00c2\u00a0 I&#8217;ve heard that the commercial product Retrospect provides copy and verify functionality, but I&#8217;m cheap. This is the method that I used.\u00c2\u00a0 I&#8217;d be interested on hearing feedback&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2009\/03\/03\/backing-up-and-verifying-files-in-mac-os\/\">Continue reading <span class=\"screen-reader-text\">Backing up and verifying files in Mac OS<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,145],"tags":[35,109,70,21287,267,266],"class_list":["post-1637","post","type-post","status-publish","format-standard","hentry","category-howto","category-technology","tag-backup","tag-macosx","tag-recipe","tag-howto","tag-shell","tag-unix","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-qp","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":2,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"predecessor-version":[{"id":1639,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1637\/revisions\/1639"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}