Is anybody able to shed insight on this issue for me?<div><br></div><div>Thanks in advance!</div><div><br></div><div> - Bryan<br><br><div class="gmail_quote">On Sat, Mar 12, 2011 at 11:30, Bryan Hoyt | Brush Technology <span dir="ltr">&lt;<a href="mailto:bryan@brush.co.nz">bryan@brush.co.nz</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I use rsync to backup my system, using a command-line such as the following:<div>&gt; rsync [src] [dst] -a --link-dest --size-only</div>

<div><br></div><div>In this case, [src] is produced by a command that makes no attempt to preserve timestamps (&quot;svnadmin hotcopy&quot;, in this case). That&#39;s why I use --size-only.</div>

<div><br></div><div>Here&#39;s the rub: identical files aren&#39;t hard-linked like I expect them to be. They&#39;re full copies. And the reason is that the timestamps are different (I&#39;ve tested that in various ways, and am able to produce correctly hardlinked backups by manually forcing the timestamps to be identical.)</div>



<div><br></div><div>Is this because --size-only doesn&#39;t affect the behaviour of --link-dest, but only the transfer comparison? Should it affect --link-dest in a similar way?</div><div><br></div><div>I&#39;ve worked around this issue by specifying &quot;--no-times&quot; on the rsync command line. This does what I want, although as far as I can make out, it&#39;s only due to a side-effect that it actually works (I don&#39;t really care whether timestamps are preserved or not, in this case -- they&#39;re bogus anyway).</div>



<div><br></div><div>The other weird thing is that --size-only *used* to work as I expect, with identical command-line, leaving off the &quot;--no-times&quot; flag. I&#39;ve had this backup system in place for a few years, and it&#39;s always worked smoothly. Then when I upgraded from an old version of Redhat to a recent version of Ubuntu (10.10), the backups suddenly shot up massively in size, for this reason. I have not changed the rsync command line before or after the Ubuntu upgrade.</div>



<div><br></div><div>Has rsync&#39;s behaviour changed in this respect in the last 2-3 years?</div><div><br></div><div>Is this a bug?</div><div><br></div><div> - Bryan</div><div><br></div></blockquote></div>
</div>