{"id":16,"date":"2008-02-03T12:57:26","date_gmt":"2008-02-03T18:57:26","guid":{"rendered":"http:\/\/www.goodjobsucking.com\/?p=16"},"modified":"2008-05-02T11:57:52","modified_gmt":"2008-05-02T17:57:52","slug":"rsync-over-smb","status":"publish","type":"post","link":"https:\/\/www.goodjobsucking.com\/?p=16","title":{"rendered":"Rsync over SMB"},"content":{"rendered":"<p>This is a short one &#8212; I was using rsync to back up about a terabyte of data, which suffered a number of interruptions.  Each time it restarted, I noticed it was copying over the same files over and over again.  As it turns out, SMB rounds off the time stamps to the nearest two-second interval, so when rsync compares timestamps, it believes the file is different.<\/p>\n<p>There&#8217;s a simple solution:<\/p>\n<blockquote><p>rsync -rlptDv &#8211;modify-window=1 [source] [destination]<\/p><\/blockquote>\n<p>The &#8220;&#8211;modify-window&#8221; switch tells rsync to relax its timestamp comparison just enough for it to behave.<\/p>\n<p>The remaining switches are useful for backing up to a NAS box, it&#8217;s essentially -a (archive mode) expanded, but without preserving ownership or groups (which doesn&#8217;t work well on the NAS.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a short one &#8212; I was using rsync to back up about a terabyte of data, which suffered a number of interruptions. Each time it restarted, I noticed it was copying over the same files over and over again. As it turns out, SMB rounds off the time \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/www.goodjobsucking.com\/?p=16\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[10,12,13],"_links":{"self":[{"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=\/wp\/v2\/posts\/16"}],"collection":[{"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":0,"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.goodjobsucking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}