How do I stop Time Machine from backing up Aperture thumbnails?

Hi,
My 2TB backup drive recently became full, and I became curious as to what was filling it up. I wrote a perl script to analyze the Time Machine backups, and I noticed that over 50% of my backup was filled with AP.Thumbnails and AP.Minis from the Aperture project directory. In particular, the AP.Thumbnails files in the backup consumed 737 GB of disk space!
The problem with the thumbnails files is that they are a single file that contains all of the thumbnails for all of the 40,000 photos I have in Aperture and it is now 20gb in size. Every time I add a new file to Aperture, the thumbnail file changes, and I get a new 20gb of data added to my backup. I add photos often which means that most of my backups have 20gb of Aperture files (which are easy to rebuild and don't need to be backed up).
I decided to try and stop Time Machine from backing up these files, and there seems to be no way of doing so (without telling Time Machine to skip backing up my entire Aperture project which I don't want to do). In Finder, you can do a "show package contents", but the Time Machine GUI doesn't allow this.
I tried to tell Time Machine to exclude the files via the GUI, but Time Machine sees the Aperture Library as a single package and won't let me exclude individual files from within the package.
I googled around, and found the attribute that Time Machine puts on files to exclude them from the backup. I used xattr to set the attributes:
xattr -w com.apple.metadata:comapple_backupexcludeItem com.apple.backupd <filename>
I also used this command on the iPhoto thumbnail files.
I used spotlight to find all of the files with this attribute using this command:
sudo mdfind "comapple_backupexcludeItem = 'com.apple.backupd'"
This command returned the iPhoto files, but did not return the Aperture files.
However, if I run "xattr" on the Aperture files, the attribute does exist!
During my next time machine backup, the iPhoto files were skipped as I wanted them to be, but the Aperture thumbnails were backed up again
I thought that maybe time machine was looking at the aperture package as an atomic unit, but iPhoto is stored as a package as well, and the attributes worked there on files inside the package.
Does anyone have any idea why time machine is still backing up these files? Is there any way I can get around this?
It seems to me to be an incredible oversight on Apple's part since both tools are Apple. The thumbnails files are very expensive to backup, and they are not necessary for backup since the are easy to rebuild from the original photos which are also backed up.
Thanks,
Ron

Shadow99999 wrote:
Hi,
My 2TB backup drive recently became full, and I became curious as to what was filling it up. I wrote a perl script to analyze the Time Machine backups,
No need to write your own script for that. there are a couple of already made nice GUI tools for this - TimeTracker http://www.charlessoft.com/ and BackupLoupe http://soma-zone.com/BackupLoupe/
and I noticed that over 50% of my backup was filled with AP.Thumbnails and AP.Minis from the Aperture project directory. In particular, the AP.Thumbnails files in the backup consumed 737 GB of disk space!
The problem with the thumbnails files is that they are a single file that contains all of the thumbnails for all of the 40,000 photos I have in Aperture and it is now 20gb in size. Every time I add a new file to Aperture, the thumbnail file changes, and I get a new 20gb of data added to my backup. I add photos often which means that most of my backups have 20gb of Aperture files (which are easy to rebuild and don't need to be backed up).
I decided to try and stop Time Machine from backing up these files, and there seems to be no way of doing so (without telling Time Machine to skip backing up my entire Aperture project which I don't want to do). In Finder, you can do a "show package contents", but the Time Machine GUI doesn't allow this.
I tried to tell Time Machine to exclude the files via the GUI, but Time Machine sees the Aperture Library as a single package and won't let me exclude individual files from within the package.
I don't have aperture but I think most people exclude the whole thing from TM backups and back it up separately. but if you want to exclude a subfolder in a package that's easy too. just select the package in finder, control-click on it and select "show package contents". in the resulting finder window drill to the folder you want to exclude and drag it to the TM exclusion list in TM system preferences->options.
I googled around, and found the attribute that Time Machine puts on files to exclude them from the backup. I used xattr to set the attributes:
xattr -w com.apple.metadata:comapple_backupexcludeItem com.apple.backupd <filename>
I was not aware of this method for excluding stuff from TM backups. could you provide a link to where you found this?
I also used this command on the iPhoto thumbnail files.
I used spotlight to find all of the files with this attribute using this command:
sudo mdfind "comapple_backupexcludeItem = 'com.apple.backupd'"
This command returned the iPhoto files, but did not return the Aperture files.
that's because Spotlight never looks inside packages unless you start a search inside a package directly. iphoto seems to be the only exception. I don't know how it's done.

Similar Messages

  • How to stop Time Machine from backing up Temp Files?

    Hi folks!
    I am trying to find out how to stop Time Machine from constantly backing up 'useless' temporary files accumulated from web browsing? Although I don't change or add large files to my HD, Time Machine backs up hundreds of MBs every hour. Those file amounts make sense when I consider that I browse a lot to YouTube, SoundCloud, etc to watch videos or listen to music - I just don't want them to be backed up.
    Under Time Machine Options I already excluded the following items from backups:
    ~/Library/Caches
    /Library/Caches
    ~/Downloads
    But even though I did this weeks ago, Time Machine stills finds large files to be backed up every hour and my only guess is that I am still missing a location where either Safari or Firefox - the two web browsers I use - store temporary files.
    Can you help?
    Thanks a lot in advance!

    oas2103 wrote:
    they come from my anti-virus software
    Are you sure you need that? There are no viruses that run on OSX. None. Zip. Zero.
    If you're running Windoze on your Mac, that's the same as running it on a PC, so it needs all the same anti-everything stuff you'd use on a PC.
    There is some "malware," such as Trojans, for Macs, though. But (unlike viruses that can get onto your system without your knowledge), you must approve their installation (via your Admin password) and/or operation (via the "This application was downloaded from the internet ..." prompt).
    Appropriately enough, some of these Trojans are included in pirated versions of Apple software, such as iWork!
    For the gory details, see Thomas Reed's [Mac Virus Guide|http://www.reedcorner.net/thomas/guides/macvirus].
    Thanks a lot again!
    You're quite welcome, and thanks for posting back.

  • How to stop time machine from backing up encrypted lion partition

    I am using 10.6.8 but I created a Lion partition on the same disk. I am trying out Lion and I do not want Time Machine to back it up. I was able to exclude the Lion volume until I encrypted the Lion partition using Filevault 2. Now when I'm using Snow Leopard, there doesn't seem to be a way of preventing Time Machine from backing up the Lion partition. Am I missing something?

    The FAQ says Snow Leopard can't read the Filevault 2 disk which seems to imply I won't be able to keep Time Machine from backing up the Lion partition. That seems wrong. How can Snow Leopard's Time Machine see the disk to back it up, but can't see it to exclude from backup?

  • Stopping Time Machine from backing up when running FCP

    Is there any way of stopping Time Machine from making backups when I have Final Cut Pro running?
    Each time TM is about to prepare backup, FCP goes down in performance like an ant in maple syrup.
    Quite annoying. And sure, I can live with no backups made during work. (I hit Command-S every minute instead... ;-))

    You may have something else going on, that doesn't seem to be a problem at other times.
    First, see if the size of the backups makes sense, given the changes you've made. If in doubt, Click here to download the +Time Machine Buddy+ widget. It shows the messages from your logs for one TM backup run at a time, in a small window. That will show the duration of each backup at the top, and the total size in the "Copied" messages.
    If that seems large, see #D4 in the Time Machine - Troubleshooting *User Tip* at the top of this forum.
    If the size seems reasonable, but the amount of time is not, see #D2 in the same place; any or all of the suggestions there may speed them up.

  • How Do I Stop Time Machine From Filling Up My External Hard Drive?

    Hi all -
    I have a 750GB OWC external hard drive on which I back up about 100GB of data from my MacBook using Time Machine, and also store a bunch of media files for work. Currently about 650GB of that is full, and that is mostly because of two Time Machine-related files: The "Backups.backupdb" folder, which is 135.15GB, and "MacBook_001b63336000.sparsebundle," which is 233.71 GB. That means that in the nine months since I bought the drive, about 370GB, or half its available space, has been eaten by Time Machine backups.
    I only back up so I have a bootable copy of all my current (not past) MacBook data if my MacBook is ever lost, stolen, or damaged. I am now very concerned that, if left unchecked, Time Machine will eat into the remaining 100GB of empty space. And my old external hard drive died precisely because it ran out of empty space. Some of my critical files were lost forever, and others I got back in pieces after several weeks of anguish and quite a bit of cash.
    Apple's support page addresses this concern (incredibly) by instructing me to buy another external hard drive. That solution is expensive for me, and what's the point, when Time Machine will eventually fill that one up too?
    So, my questions are:
    1. Is there any point at which Time Machine recognizes it's nearly out of hard drive space, and either stops backing up, or deletes old backups, or sends me a warning, or something?
    2. If not, is there a way I could designate a maximum size for Time Machine backups to take, such as 150 GB, that it cannot exceed?
    3. Partitioning has been suggested, but I don't know how. Any instructions?
    4. The OWC hard drive came with its own backup software. Should I just use that and shut up?
    It would be mighty ironic if the software I use to save all my data got so fat, it sacrificed all my data....
    Thanks in advance -

    Andrew Saks wrote:
    Hi all -
    I have a 750GB OWC external hard drive on which I back up about 100GB of data from my MacBook using Time Machine, and also store a bunch of media files for work. Currently about 650GB of that is full, and that is mostly because of two Time Machine-related files: The "Backups.backupdb" folder, which is 135.15GB, and "MacBook_001b63336000.sparsebundle," which is 233.71 GB. That means that in the nine months since I bought the drive, about 370GB, or half its available space, has been eaten by Time Machine backups.
    this is pretty confusing. have you been using it for both wireless and wired backups? the sparse bundle would only be created if you've used it for network backups. directly attached TM drives don't use a sparse bundle so it looks like you've got two separate backup lines. you should get rid of one as using both is very space inefficient.
    I only back up so I have a bootable copy of all my current (not past) MacBook data if my MacBook is ever lost, stolen, or damaged.
    FYI, TM backups are not bootable themselves. You can use the "full system restore from TM" utility on the leopard install DVd to restore your system from backups. That restored system will, of course be bootable.
    I am now very concerned that, if left unchecked, Time Machine will eat into the remaining 100GB of empty space. And my old external hard drive died precisely because it ran out of empty space. Some of my critical files were lost forever, and others I got back in pieces after several weeks of anguish and quite a bit of cash.
    Apple's support page addresses this concern (incredibly) by instructing me to buy another external hard drive. That solution is expensive for me, and what's the point, when Time Machine will eventually fill that one up too?
    So, my questions are:
    1. Is there any point at which Time Machine recognizes it's nearly out of hard drive space, and either stops backing up, or deletes old backups, or sends me a warning, or something?
    I'm not sure of the precise point (TM need some free space on the backup drive to operate) but yes, this will eventually happen. when it does, TM will inform you of this and will give you an option of either stopping TM backups and changing the TM drive or starting to delete old backups. If you choose the latter it will start deleting old backups to create space for new ones. this is done automatically.
    2. If not, is there a way I could designate a maximum size for Time Machine backups to take, such as 150 GB, that it cannot exceed?
    not unless you partition the drive.
    3. Partitioning has been suggested, but I don't know how.
    it's an option but not right now. you have too little free space left for a successful partitioning process. If you try, the process is sure to fail due to disk fragmentation.
    You need to get rid of A LOT of data if you want to try partitioning. also, fort the future, it's a very good idea to keep one partition entirely for TM and another for data. You'll avoid some of the problems you are having now.
    Any instructions?
    type "creating new volumes" in disk utility help.
    4. The OWC hard drive came with its own backup software. Should I just use that and shut up?
    don't. besides TM there are much better options out there. CCCloner and Superduper! are better than anything that OWC software has to offer.
    It would be mighty ironic if the software I use to save all my data got so fat, it sacrificed all my data....
    Thanks in advance -

  • How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    Once you have the drive connected to your Mac, click System Preferences (gear icon) on the dock
    Click Time Machine
    Click Options
    Be default, the hard drive will be Excluded from backups. Click the drive to highlight it, then click the "-" (minus) button at the bottom of the list to remove the drive from Excluded items.
    The drive will be backed up on the next Time Machine pass
    Everything above assumes that the hard drive has been formatted in Mac OS Extended (Journaled) as Time Machine will only backup drives in that format.

  • HT3275 Has anyone come across the red "i" message saying "The backup disk image "/Volumes/Chris...(the last bit being) iMac.sparsebundle" is already in use? This has prevented my time machine from backing up from this morning (5th Dec 2012).

    Has anyone come across the red "i" message saying "The backup disk image "/Volumes/Chris...(the last bit being) iMac.sparsebundle" is already in use."?
    As of yesterday (4th Dec 2012) everything was fine, no trouble or problems at all. Wake up this morning, turn on the computer and when it came time to backup itself, the message occurred above and this has prevented my time machine from backing up from this morning (5th Dec 2012) ever since then.
    Everything on my computer is up-to-date but this problem still persists displaying this message practically every hour, on the hour and nothing is getting backedup!
    If you know what is going on and more importantly, how to fix this, I would be indebted to you for sharing your knowledge with me on this subject.
    Thank you.

    Welcome to the Apple Support Communities
    See > http://pondini.org/TM/C12.html

  • How do I get Time Machine to back up my iTunes movies and tv shows?

    How do I get Time Machine to back up my iTunes movies and tv shows?

    They're backed up automatically unless in a folder in the exclusion list of the Time Machine pane of System Preferences.
    (59927)

  • How do you stop the ipod from backing up songs when syncing?

    how do you stop the ipod from backing up songs when syncing?

    The backup does not include songs at all or apps or movies.

  • How to disable Time Machine from backing up to hard drive

    Mountain Lion (OSX 10.8) will not install onto iMac (under OSX 10.7.4) because: "hard drive is Time Machime backup disk" error message.  However, TM Preferences does not show the iMac HD as a TM backup Location Option - it only shows the LaCie External Drive - which has been the storage drive receiving the Time Machine Backup.  How do I remove/prevent Time Machine from looking for and/or backing up to the iMac Hard Drive if the TM Pref does not list the iMac Hard Drive as an option? Note: The iMac HD icon on the desktop is a "Time Machine image" (blue Drive icon w/white white counter clockwise arrow).  Thanks.

    Check to see if you have a file called backups.backupdb on the hard drive you are attempting to update.
    If the install procedure see such a file, it might think that it is a TM backup drive.
    Allan

  • How do I Use Time Machine to back up external HD

    I have an iMac running Snow Leopard (10.6.7). I have a 1 TB USB external hard drive directly connected to the iMac that I use to store about 300 GB of pictures and videos (I will call this one AUX). I have another 1 TB USB external hard drive (I will call this one BACKUP) that is also directly connected to the iMac. I am using this one with Time Machine to back up my iMac hard drive. All connections are direct USB, no WiFi. Both external drives are formatted "Mac OS Extended (Journaled)". Time Machine works fine with the iMac hard drive but will not back up the AUX external drive. The Time Machine system preferences window has an "Exclude these items from backups" display that shows only the BACKUP external drive (grey so not selectable). It does not seem to see the AUX hard drive. How can I get it to back up AUX???

    Uhh, well, I guess I have to qualify my question above. Upon using a third party file search program, I find that the contents of my AUX external drive are being backed up by Time Machine. But, when I use Spotlight to search my Time Machine backup HD, I get nothing, which is why I thought it was not working right.
    So, why is Spotlight not giving me results on my Time Machine BACKUP external drive???

  • HT201250 how do I get Time Machine to back up files (e.g. iPhoto) stored on an external hard drive?

    Installed a new 3TB external hard drive for Time Machine.  I have 2 other external hard drives attached to my iMac that contain iTunes and iPhoto.  How can I point Time Machine to those external drives to include in the backup?

    What is listed in System Preferences > Time Machine > Options... > Exclude these items from backups:?
    Any attached external disk not listed there should be backed up.

  • How do I reset Time Machine to back up weekly instead of daily

    I have Time Machine backing up to an external Seagate Drive and it has been working fine for a couple of years.
    I had it set to backup weekly and for some reason it is now doing a FULL backup every day!  Way too often for me.
    When I try to reset through System Preferences it looks for wireless Airport connection (which I don't have) and doesn't show the external drive, but obviously it is connected for Time Machine is backing up every day and I can see the data...
    any ideas as to what I am doing wrong and how I can fix it ?
    Thanks
    Rose

    Check thru Pondini's tips:
    http://pondini.org/TM/13.html
    http://pondini.org/OSX/Home.html
    Or you can go in to TM preferences and turn it off, then turn it on and run it when you want. (it will take longer)

  • How to stop Time Machine from polling disks

    I have shut off Time Machine in system preferences but it continuously asks if I want to use it with a disk that is attached.
    The questions is simple - how can I stop this from happening?
    I have already tried:
    defaults write /Library/Preferences/com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES
    It still continues to harass me daily. Any suggestions appreciated!

    I may have spoke to soon. I think I finally squashed the prompts with the terminal command I noted above.
    Essentially what you are saying is let TM set up a preference file then shut it off - that would probably work. Thanks for the suggestion - if I get the prompt again from TM I will try your idea.

  • How to stop Time Machine from deleting historical backups

    So for the first time I encountered what happens when Time Machine runs out of room - IT DELETES THE OLDEST BACKUPS UNTIL IT HAS ENOUGH ROOM!!!
    That's terrible if you rely on those backups. We've been using it like an archive and it's been spectacular. Work on a project and delete it when I'm done because I know Time Machine has a copy.
    Well, I no longer have copies of my work from Arpil until July because Time Machine deleted those AUTOMATICALLY to make room. I had always thought that it would warn me it was going to delete older backups and I could just decline. Then I'd go out and get a new drive. This make Time Machine unusable for my purposes.
    Is there a was to make Time Machine just stop backing up or warn you before it erases old backups? Some way where it cannot erase them on it's own? Perhaps some Terminal command or anything?
    Thanks!

    Landon White wrote:
    So for the first time I encountered what happens when Time Machine runs out of room - IT DELETES THE OLDEST BACKUPS UNTIL IT HAS ENOUGH ROOM!!!
    That's terrible if you rely on those backups. We've been using it like an archive and it's been spectacular. Work on a project and delete it when I'm done because I know Time Machine has a copy.
    Well, I no longer have copies of my work from Arpil until July because Time Machine deleted those AUTOMATICALLY to make room. I had always thought that it would warn me it was going to delete older backups and I could just decline.
    in system preferences->Time machine->options there is a check box "warn when old backups are deleted". if this box is checked TM is supposed to warn you when it first starts deleting old backups. However, that particular feature is quite buggy and TM is well known not to do that on occasion. there are also other situations when it might decide to delete old backups without warning. Therefore you should NOT use TM as an archiving utility. apart from the above issues it also thins old backups and THAT is always done without warning. TM is a backup tool not an archiving one and you shouldn't use it as such.
    Message was edited by: V.K.

Maybe you are looking for

  • QM status

    Hi all; Production issue, pls help. I am loading data into my ODS from a cube; while loading the QM status turns red in few minutes, I can see the transfered records and added records, and when I went to the monitor it says No error found the current

  • Portion of screen doesn't respond to touch

    I got my iPod Touch a few months ago and just today I found that about the top inch (almost half) of the screen doesn't respond to touch. I can't access 'calendar, notes, etc...', nor can i scroll through my songs from the top half or hit the 'back'

  • Restoring an app that has been hidden by Show Desktop in Windows 7

    Does anyone know if a way to restore/unhide an AIR app that has been hidden by the Show Desktop command in Wndows 7? I used AutoHotKey to remap the Windows-D shortcut but it still does not capture the Show Desktop button in the Taskbar. I thought if

  • Apt killer

    What is the best apt killer for the droid Incredible?

  • QUIT PROMPT FROM SCRIPT

    Hello everybody, I'm with a client that complains about the several times that he has to select the members of a dimension, everytime he runs a package. I made some research and i didn't find the way to remove all the dimensions from the prompt, ther