Re: I don't get --link-dest, at all

2009-08-11 Thread Mac User FR
I think your problem is with reading the correct size of folders as there have hard links. To do this with du command, try: du -sh /home/backup/* As far as I know, du command will only report the "real" disk size if the 2 hard links are in the du "scoop". Otherwise, running 2 times du on th

Re: I don't get --link-dest, at all, Now I do - SOLVED

2009-08-11 Thread Scott Schappell
Maybe I should take up an afternoon coffee habit. I did some reading on du, and found out that it only disregards a file with multiple hard links if it has seen it before. Running du -hcd1 on /home/backup resulted in all expected results. [r...@arthur /home/backup]# du -hcd1 . 2.0K./hom

Re: I don't get --link-dest, at all

2009-08-11 Thread Scott Schappell
And now df is reporting proper usage of 5.4 GiB (which is what I expected). Maybe I just wasn't being patient enough and there's some weird df lag or something. Anyway, seems like it's working OK, but if anyone has any pointers on doing this more efficiently, I'd be more than happy to hear

I don't get --link-dest, at all

2009-08-11 Thread Scott Schappell
Hourly I have an rsync job backup /home to /home/backup. I have 24 directories (one for each hour): home.0 ... home.23 Here is the script I am running via cron: #! /usr/local/bin/bash dest=`date +%k | sed 's/ //g'` linkdir=`date -v-1H +%k | sed 's/ //g'` chflags -R noschg /home/backup rm -rf