Why are my Photos library database/metadata files being modified even when I'm not using the Photos app?

OS: MacOS 10.12.3 (16D32)

Hardware: MacBook Pro (13-inch, Mid 2012)

I currently use Dropbox to sync, among other things, my Photos library on my laptop*. The Dropbox widget notifies me when files have been changed, and it is syncing those changes.

Frequently throughout the day (3-4 times, as far as I can tell), the Dropbox widget indicates that it is syncing a bunch of files that, I think, are part of the Photos library, like this:

Dropbox widget recently changed list

I think they have something to do with the database that the Photos app keeps to organize the library. This occurs despite not having the Photos app open, and not intentionally doing anything related to the Photos library!

Is there some kind of background process that is accessing or modifying my Photos library? I tried shutting off iCloud on my laptop, but it had no effect on the problem.

This is irritating, because neither my computer nor my internet connection is very fast, so it slows my work down.

Thanks for your help!

*Note: I am aware of the hazards of using Dropbox to sync a Photos library. I only access it on one computer.


Solution 1:

This is the design of iCloud based photo library storage. There are several daemons that run in the background so you'll want to store your these files in a directory where dropbox doesn't perform any syncronizioaion.

If you need backup, you can script that and store just the periodic backups in dropbox.

You likely won't be able to change this behavior as Apple is all in with cloud syncing of data and even if you neutered the processes on this version of 10.12, the next security update or patch will likely re-enable this behavior.

If you really need to track down what's happening, you can open the command line (terminal.app) and use fs_usage to see in real time which processes access the files in question. With sudden app termination and power nap, you may find that the system will start processes to run periodically even when the app itself isn't launched. Similarly, when an app is launched, the process can and will be terminated when the system knows they have no work to do.

The analogy isn't perfect, but several years back, most apps were a manual transmission. Now most Apple apps are automatic transmission - you don't control their launch or exit in many cases - just whether the icon shows in the app switcher and dock.