Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Time Machine seems to miss a LOT of files

Hello,

I am having problems with TM apparently backing up files successfully to an external USB disk. Some new files are actually not copied over, and some changes to existing files are missed as well.

After spotting this manually, I wrote a control program; for example, the result after my last backup is:

stat: prebackup postbackup
stat: 89 0 missed
stat: 294 3 different
stat: 383 3 TOTAL

prebackup are files that existed before the last backup was takes (which is not normal), postbackup are changes that happened after the last backup (which is normal).

I have checked some of these differences manually and they are indeed "correct".

I have followed the FAQ, the 101, created a new TimeDisk from scratch, and running out of ideas now.

I'd love to have testers for my check program. It's available on http://webplaza.pt.lu/uselpa/tmcheck.py , tested under OS X 10.6 with an external USB disk. It's written in Python.

This will help me to make sure
1) I have got no false positives,
2) and also will help me find out if anyone else is in this situation or if it specific to my setup.

Feedback, questions, suggestion are welcome.

Macbook mid-2007, Mac OS X (10.6.3)

Posted on Apr 11, 2010 1:46 AM

Reply
22 replies

Apr 11, 2010 7:39 AM in response to uselpa

What files are these? Time Machine automatically excludes a number of things, such as system work files, most caches and logs, trash, etc.

There are also a few things excluded via extended attributes; these are mostly in iTunes and iPhoto, files that are indexes or the like, and are automatically recreated when restored, so don't need to be backed-up.

If you're using Xcode, the "build" folders aren't backed-up.

In some circumstances, your iPhoto library won't be backed-up if it's open.

Some other open files may not be backed-up, either.

Apr 11, 2010 7:50 AM in response to Pondini

I am aware of those exclusions and my program takes them into account (see list at the end of this post).

Right now the missing files are updates of NeoOffice, web pages I've saved in Firefox vie "Save Page as", 2 NeoOffice spreadsheets of mine that I've updated, VMWare virtual machines. I've observed other things beforehand, like PDF files that I filled in and Python programs I wrote.


current known exclusions:
pumacbook:~ root# tmcheck showex
info: comparing to /Volumes/TimeDisk 2/Backups.backupdb/pumacbook/Latest/Macintosh HD ( Sun Apr 11 16:45:32 2010 )
info: general exclusions
info: /.fseventsd (StdExclusions)
info: /.hotfiles.btree (StdExclusions)
info: /.spotlight-v100 (StdExclusions)
info: /.trashes (StdExclusions)
info: /.vol (StdExclusions)
info: /automount (StdExclusions)
info: /backups.backupdb (StdExclusions)
info: /cores (StdExclusions)
info: /desktop db (StdExclusions)
info: /desktop df (StdExclusions)
info: /dev (StdExclusions,mount)
info: /home (StdExclusions,mount)
info: /library/caches (StdExclusions)
info: /library/logs (StdExclusions)
info: /net (StdExclusions,mount)
info: /network (StdExclusions)
info: /network/servers (StdExclusions)
info: /previous systems (StdExclusions)
info: /private/network (StdExclusions)
info: /private/tftpboot (StdExclusions)
info: /private/tmp (StdExclusions)
info: /private/var/automount (StdExclusions)
info: /private/var/db/dhcpclient (StdExclusions)
info: /private/var/db/fseventsd (StdExclusions)
info: /private/var/db/spotlight (StdExclusions)
info: /private/var/db/spotlight-v100 (StdExclusions)
info: /private/var/folders (StdExclusions)
info: /private/var/log (StdExclusions)
info: /private/var/run (StdExclusions)
info: /private/var/spool/cups (StdExclusions)
info: /private/var/spool/fax (StdExclusions)
info: /private/var/spool/uucp (StdExclusions)
info: /private/var/tmp (StdExclusions)
info: /private/var/vm (StdExclusions)
info: /system/library/caches (StdExclusions)
info: /system/library/extensions/caches (StdExclusions)
info: /tmp (StdExclusions)
info: /users/guest (StdExclusions)
info: /users/ly/music/itunes/album artwork/cache (mdfind)
info: /users/ly/music/itunes/itunes music library.xml (mdfind)
info: /users/pu/library/calendars/calendar cache (TimeMachine)
info: /users/pu/library/itunes/ipod software updates (mdfind)
info: /users/pu/library/mail/envelope index (TimeMachine)
info: /users/pu/library/mail/metadata/backingstoreupdatejournal (TimeMachine)
info: /users/pu/library/preferences/byhost/com.apple.dotmacsync.0019e349c05e.plist (TimeMachine)
info: /users/pu/music/itunes/album artwork/cache (mdfind)
info: /users/pu/music/itunes/album artwork/local (mdfind)
info: /users/pu/music/itunes/itunes music library.xml (mdfind)
info: /users/pu/pictures/iphoto library/ipod photo cache (mdfind)
info: /users/shared/sc info (StdExclusions)
info: /users/sy/music/itunes/album artwork/cache (mdfind)
info: /users/sy/music/itunes/itunes music library.xml (mdfind)
info: /volumes (StdExclusions)
info: /volumes/oldtimedisk (mount)
info: /volumes/timedisk 2 (mount)
info: /volumes/uselpa (mount)
info: user exclusions
info: .bash_history (tmcheck)
info: .trash (tmcheck)
info: library/application support/syncservices/data.version (StdExclusions)
info: library/caches (StdExclusions)
info: library/logs (StdExclusions)
info: library/mail/availablefeeds (StdExclusions)
info: library/mail/envelope index (StdExclusions)
info: library/mirrors (StdExclusions)
info: library/preferences/com.apple.recentitems.plist (tmcheck)
info: library/pubsub/database (StdExclusions)
info: library/pubsub/downloads (StdExclusions)
info: library/pubsub/feeds (StdExclusions)
info: library/safari/historyindex.sk (StdExclusions)
info: library/safari/icons.db (StdExclusions)
info: library/safari/webpageicons.db (StdExclusions)

Message was edited by: uselpa

Apr 11, 2010 8:23 AM in response to uselpa

uselpa wrote:
. . .
Right now the missing files are updates of NeoOffice, web pages I've saved in Firefox vie "Save Page as", 2 NeoOffice spreadsheets of mine that I've updated, VMWare virtual machines. I've observed other things beforehand, like PDF files that I filled in and Python programs I wrote.


I don't use NeoOffice, so can't comment on it.

I did a "Save Page As" with the default +Web Page, complete+ via Firefox 3.6.2, and TM backed-it up.

I'm not sure why you'd want TM to back up vm files (most users exclude them, and TM often chokes on them). I'm sure you know, if it's on a MBR volume, TM won't back it up.

One possibility: for some users on Snow Leopard, if you do a +*Verify DIsk+* on your boot volume, or alter any partitions on your boot drive, using the version of Disk Utility on your boot volume, TM will stop finding changes. Backups run, but nothing gets saved. A Restart will fix it. Apple knows of this, but it wasn't fixed in 10.6.3.

Another possibility is, something corrupted in a folder (the folder object itself, apparently). We've seen a few cases of this, where nothing inside the affected folder gets backed-up.

Apr 11, 2010 9:15 AM in response to Pondini

Pondini wrote:
uselpa wrote:
. . .

I don't use NeoOffice, so can't comment on it.


All I can say that TM picks those files up, generally speaking. But not always.

I'm not sure why you'd want TM to back up vm files (most users exclude them, and TM often chokes on them). I'm sure you know, if it's on a MBR volume, TM won't back it up.


What do you mean by "on a MBR volume"? It's VMWare Fusion, and the files are in my /Users/pu, on the boot volume. I don't suppose that TM looks inside the VMWare files, so I don't see where MBR comes in here, or am I missing something?

One possibility: for some users on Snow Leopard, if you do a +*Verify DIsk+* on your boot volume, or alter any partitions on your boot drive, using the version of Disk Utility on your boot volume, TM will stop finding changes. Backups run, but nothing gets saved. A Restart will fix it. Apple knows of this, but it wasn't fixed in 10.6.3.


Yes, I've run across that one, but I've rebooted since the last check. I actually also did fsck -fy on both the boot volume (from the install disk) and the TM volume. Nothing got fixed.

Another possibility is, something corrupted in a folder (the folder object itself, apparently). We've seen a few cases of this, where nothing inside the affected folder gets backed-up.


I have the impression that fseventd misses events in certain circumstances, which scares me slightly since other software depends on that mechanism as well. Would you happen to be aware of such problems?

Regards,
-Patrick

Apr 11, 2010 9:30 AM in response to uselpa

uselpa wrote:
. . .
What do you mean by "on a MBR volume"? It's VMWare Fusion, and the files are in my /Users/pu, on the boot volume. I don't suppose that TM looks inside the VMWare files, so I don't see where MBR comes in here, or am I missing something?


Some folks put one or more of them in a separate MBR partition.

I have the impression that fseventd misses events in certain circumstances, which scares me slightly since other software depends on that mechanism as well. Would you happen to be aware of such problems?


It will get overwhelmed with a high volume of changes, such as an OSX update. But when it does, TM does a "deep traversal" to catch up.

For the things that got missed -- boot up from your Install disc (you don't have to do anything there), then reboot normally. That should force a "deep traversal" on the next backup. See if the missing items get backed-up.

Apr 11, 2010 11:16 AM in response to Pondini

For the things that got missed -- boot up from your Install disc (you don't have to do anything there), then reboot normally. That should force a "deep traversal" on the next backup. See if the missing items get backed-up.


I did that, but that didn't change anything.

Now my program has a 'force' option which changes the access and modified times of the missed files. I ran that, and then ran a TM backup again. Et voilà, the number of missed files is down to 0 (from 450).

Now this tells me (please correct me if I'm mistaken) that those files were meant to be backed up by TM, because otherwise they would have been ignored during the last run as well. So to me it's either a bug in fseventd, or in TM itself.

I'd really love some experienced people to run the same tests on their machines, and see whether this is a general problem or not.

Regards,
-Patrick

Apr 11, 2010 11:28 AM in response to uselpa

uselpa wrote:
For the things that got missed -- boot up from your Install disc (you don't have to do anything there), then reboot normally. That should force a "deep traversal" on the next backup. See if the missing items get backed-up.


I did that, but that didn't change anything.


Did it do a "deep traversal"?

Apr 13, 2010 7:02 AM in response to uselpa

I have noticed the problem you are mentioning too - time machine seems to not keep some directories backed-up currently. they're a few days old in the backup.

delighted that i'm not the only one, i downloaded your script.

i've never coded in python and so can't find where you come up with the time machine path. I get an error that it can't find the time machine Latest directory, as it appends a .local to my machine's name when looking for the time machine directory (i.e. /Volumes/backup/Backups.backupdb/computername.local/Latest/harddrive/) but the actual directory does not contain the .local.

Can you release a fixed version that looks for both?

Thanks in a advance,

Time Machine seems to miss a LOT of files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.