{"id":323,"date":"2010-06-15T14:02:48","date_gmt":"2010-06-15T13:02:48","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=323"},"modified":"2025-03-02T10:57:19","modified_gmt":"2025-03-02T09:57:19","slug":"samba-rsync-rdiff","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2010\/06\/samba-rsync-rdiff\/","title":{"rendered":"samba, rsync, rdiff"},"content":{"rendered":"<p>sometimes my backups are not consistent. rsync \/ samba to blame?<br \/>\n<!--more--><br \/>\nsome of my backups go as follows:<\/p>\n<p>windows scheduled job backups data to linux via rdiff \/ rsync [ depending on the case ].<br \/>\nif needed linux runs rdiff to create backup of the data<br \/>\nrsync [run on few machines ] copies the data to it&#8217;s final destination<br \/>\nconsistency of data is checked again with rdiff &#8211;verify<\/p>\n<p>from time to time i&#8217;ve been getting inconsistent backups [good to know before you need to recover!] and i&#8217;ve been searching for the cause. apparently sometimes files do not change in size and their modify date stays same, yet change date differs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhost:\/root# stat &quot;\/mnt\/backup\/file.xls&quot;\r\n  File: `\/mnt\/backup\/file.xls&#039;\r\n  Size: 176640          Blocks: 360        IO Block: 4096   regular file\r\nDevice: 80ah\/2058d      Inode: 36814865    Links: 1\r\nAccess: (0666\/-rw-rw-rw-)  Uid: ( 1019\/ninja-szctapp0)   Gid: ( 1019\/ninja-stoback0)\r\nAccess: 2010-06-15 08:39:26.000000000 +0000\r\nModify: 2010-03-24 08:11:59.000000000 +0000\r\nChange: 2010-06-09 09:44:53.000000000 +0000\r\nhost:\/root# stat &quot;\/mnt\/external\/file.xls&quot;\r\n  File: `\/mnt\/external\/file.xls&#039;\r\n  Size: 176640          Blocks: 360        IO Block: 4096   regular file\r\nDevice: 700h\/1792d      Inode: 30466647    Links: 1\r\nAccess: (0666\/-rw-rw-rw-)  Uid: ( 1019\/ninja-szctapp0)   Gid: ( 1019\/ninja-stoback0)\r\nAccess: 2010-04-05 18:16:41.000000000 +0000\r\nModify: 2010-03-24 08:11:59.000000000 +0000\r\nChange: 2010-04-05 18:16:41.000000000 +0000\r\n<\/pre>\n<p>so i&#8217;ve put in samba config in each share section <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndos filetimes = Yes \r\n<\/pre>\n<p>naively thinking it&#8217;ll sort my problems. we will see. alternatively i can use &#8211;checksum option of rsync but that will slow backup process quite significantly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sometimes my backups are not consistent. rsync \/ samba to blame?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[56],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-tech","tag-rsync"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":7,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":3716,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/323\/revisions\/3716"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}