On 10/20/06, Daniele P. <[EMAIL PROTECTED]> wrote:
On Thursday 19 October 2006 23:19, Sturla Holm Hansen wrote:
> Hmm, just wondering, would hardlinks report different sizes too?
Hi
if you want to preserve hard link between transer with rsync
use rsync -Havz the first -H does the trick (man rsync).
If you want to count the space not counting twice the same hard link
a 'du -chs' will do the job:
for example if you have two directory '1' and '2'
and '2' is full of hard link pointing to '1' 's files, with every file
of '2/' being an hard link
pointing to the same file in '1/'
if you do a
$du -chs 1/ 2/
you will count the hard link once
if you do
$du -chs 1/
$du -chs 2/
you will count the hard link twice
I never heard of lack of precision of 'du'
Bye
Valerio Daelli
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]