DU and Hard Links?

Max Kipness mkipness at geniant.com
Sun Jun 20 05:55:38 GMT 2004


> -----Original Message-----
> From: Wayne Davison [mailto:wayned at samba.org] 
> Sent: Saturday, June 19, 2004 3:22 PM
> To: Max Kipness
> Cc: rsync at lists.samba.org
> Subject: Re: DU and Hard Links?
> On Sat, Jun 19, 2004 at 01:55:02PM -0500, Max Kipness wrote:
> > But what I would like to do is automatically get the size 
> of the last 
> > created hard linked directory daily through a script.
> Try the attached perl script.  It counts the blocks in the 
> arguments you specify (like du does), but it leaves out any 
> files that have more links than the number of instances we 
> find in our scan (i.e. if we find "foo"
> with a link count of 2 and we run across it again in our 
> scan, we count its blocks; if it had a link count of 3 or 
> more and we only ran across it twice, we'd skip it).
> ..wayne..

Wayne, that did the trick. Thanks.


More information about the rsync mailing list