Aperture, OS X 10.5.2 and Time Machine

Scott Lewis sglewis at mac.com
Fri Feb 29 11:56:26 PST 2008


On Feb 29, 2008, at 4:14 AM, Paul Sargent wrote:

>> "find /location ! -type d -links +1 -ls | sort -n" returns only  
>> hard links
>
> That will return files that are hard links, but Time Machine hard
> links directories too. In fact most of the hard links are directories.
> Files under a hard linked directory still only have one link although
> they appear in two places in the tree.
>
> Directories have multiple links normally, so it makes detecting them  
> difficult.
>

I guess the real solution would be to create a script that does the  
above find, but adding -depth 0, and placing that in an array, and  
then do it again as John posted, and continue down the tree one level  
at a time, but ignoring any directories that are hard linked.

I could probably do that, although to be honest, my scripting is 'eh'  
at best, and there would probably be a hundred more optimized ways of  
doing it.

For my money, I detected that Aperture and Time Machine are playing  
well together, and determined that it wasn't copying large amounts of  
unmodified JPGs over and over again by checking the .Backup.log file  
in each Time Machine directory, and seeing that when I import a lot of  
files, it copies a LOT of files during the next backup. On all other  
backups, if I haven't been doing much in Aperture other than edits, it  
does a very small amount of backups. :)

Thanks again to whoever knew of the .Backup.log file and pointed me to  
it - that basically answered my question. I do see why people use ln - 
s so much - hard links are powerful, but symbolic links are a bit  
easier to work with for most tasks.


More information about the MacOSX-talk mailing list