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>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">PS. Check out the Brush newsletter: <a href="http://brush.co.nz/newsletters" style="color:rgb(0, 0, 204)" target="_blank"><b>Subscribe or read our previous newsletters</b></a><br>


<br>Bryan Hoyt, <i>Web Development Manager</i>  --  Brush Technology<br><b>Ph:</b> <a href="tel:%2B64%203%20741%201204" target="_blank">+64 3 741 1204</a>     <b>Mobile:</b> <a href="tel:%2B64%2021%20238%207955" target="_blank">+64 21 238 7955</a><br>

<b>Web:</b> <a href="http://brush.co.nz/" style="color:rgb(0, 0, 204)" target="_blank">brush.co.nz</a></span><br>

</div>