With rsync --link-dest, how can you tell how much space is actually used?

Eric Shubert ejs at shubes.net
Sat Oct 22 22:00:42 MDT 2011


On 10/22/2011 08:49 PM, Eric Shubert wrote:
> How sure are you of that? I guess I assumed that -s would simply
> summarize the total for each directory entry. Should probably do a test
> to see if that's indeed true or not.
>

Thanks Kevin. You are the wise one:
testdir$ ls -lr *
-rw-r--r-- 3 shubes shubes 1048576 2011-10-22 20:52 testfile2
-rw-r--r-- 3 shubes shubes 1048576 2011-10-22 20:52 testfile1

testdir2:
total 1024
-rw-r--r-- 3 shubes shubes 1048576 2011-10-22 20:52 testfile21
testdir$ du -shc *
1.1M	testdir2
1.1M	total
testdir$

I really need to quit assuming. You'd think at my age I'd've learned better.

Long live du. :)

-- 
-Eric 'shubes'



More information about the rsync mailing list