10.5: View exactly which files Time Machine backed up

Jul 17, '08 07:30:04AM

Contributed by: jdsmith

You may occasionally notice Time Machine is backing up an unexpectedly large amount of data, or maybe you're just curious as to what actually changed between backups. Perhaps you'd like to tailor your exclusion list to keep the backup size down. Unfortunately, the Time Machine interface provide no means to find out what it is actually being backed up. Luckily, we can use the fact that Time Machine creates hard links of unchanged files to explore what it did back up, after the fact. timedog is a Perl script (4KB download) which does just that. Use it like so:

$ cd /Volumes/TM/Backups.backupdb/myhost
$ timedog -d 5 -l
By default, timedog will examine the most recent backup, compare it to the one prior, and report all changed files. The -d flag controls the directory depth of reporting, -l disables reporting for symbolic links (for which Time Machine seems to create a new copy of the link each backup). You can also specify a backup of your choice as an argument, though it must also have one prior backup with which to compare.

This script should be safe, but standard warnings apply regarding mucking with your TM database.

[robg adds: I haven't tested this one; the script should already be marked as executable, so it should run after download without any changes.]

Comments (18)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20080714124323976