Skip to content

[Bug]: Time Machine backup failures #404

Open

Description

@picnicbob

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

All of a sudden my Time Machine backups were hanging and failing and after a lot of trial and error I've found the culprit to be ~/Library/Application\ Support/com.apple.container/snapshots
I had tried different disks both networked and USB and it was always hanging right around 10% of the way through. Finally I got the idea to look at backupd's open files while it was hung and there was ~/Library/Application\ Support/com.apple.container/snapshots Once I added that to my list of excluded backup paths everything's fine.
I'd like to offer more in terms of logs or something useful to point to the actual problem but backupd just gets stuck trying to read a file in there and eventually gives up and I get a generic error in the UI about possible permissions problems.

Current behavior

I'm not sure why, but Time Machine / backupd can't handle ~/Library/Application\ Support/com.apple.container/snapshots

Expected behavior

I'd like to be able to back it up, but as long as my Time Machine backups on the rest of my computer work it'd be ok to skip it by default.

Environment

- OS: 15.6 (24G84)
- Xcode: Version 16.4 (16F6)
- Container: Initially version 0.1.0 but also tried after updating to 0.3.0

Relevant log output

Time Machine and backupd provide very little information. I'm open to suggestions.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Jul 31, 2025
  2. jglogan commented on Aug 1, 2025

    @jglogan
    Contributor

    @picnicbob Each of the snapshot files in there is a 512GB sparse file. Can you check the format of your Time Machine volume? Is it HFS+?

    If so, skip all of the data directory ~/Library/Application\ Support/com.apple.container.

  3. picnicbob commented on Aug 1, 2025

    @picnicbob
    Author

    @jglogan It was failing on a freshly initialized APFS backup volume. I did end up excluding the entire com.apple.container directory.

  4. ldemailly commented on Aug 21, 2025

    @ldemailly

    Same I have been fighting for 3 days to get my timemachine back up to work and found after inspecting backupd

    "/Users/dl/Library/Application Support/com.apple.container/containers/2e3d6ba7-b22d-419d-b8fd-34ea72d896f9/config.json"

    is what it is stuck on

    I will exclude all of /Users/dl/Library/Application Support/com.apple.container but this is a pretty serious bug/issue

  5. kohlschuetter commented on Aug 21, 2025

    @kohlschuetter

    Same problem here. The Time Machine backup appears stuck: no movement in TB copied for a long time.

    Running sudo fs_usage -w | grep backupd (watch for a few minutes) reveals that it keeps accessing /Library/Application Support/com.apple.container/snapshots but only makes limited progress. (Snapshots are transparently compressed files 512GB each, and were still 1.8G in total and 75M to 568M each compressed in my case).

    tmutil addexclusion ~/Library/Application\ Support/com.apple.container apparently somehow affects a running backup as well (more accesses seen in fs_usage), but will not immediately skip over these files — skip the backup, and try again.

    I suggest moving the snapshots directory to ~/Library/Caches/com.apple.container/snapshots, that's where they probably belong and to (automatically, upon creation) set the extended attribute that tmutil addexclusion generates on that directory, just to be sure. Moreover, maybe old snapshots should be automatically deleted at some point?

    Excluding the entire ~/Library/Application Support/com.apple.container folder is a bit too much, as one would lose container images, custom kernels, etc.

  6. ldemailly commented on Aug 21, 2025

    @ldemailly

    In addition it leaves the target backup disk in full/bad state...

  7. DrCuff commented on Sep 15, 2025

    @DrCuff

    Hi team,

    Sorry didn't see this until now - Eric suggested I make a request. Feel free to merge this info here:

    #612

    I thought I was the only person on the planet with this little challenge.

  8. mxey commented on Mar 18, 2026

    @mxey

    I just spent a few days wondering what was up with my backup. Took me way too long to realize it wasn’t usual Time Machine jankiness but these huge sparse files.

    I assume it will be resolved by switching to ASIF eventually but in the meantime can you add a big warning to the install guide?

  9. jglogan commented on Mar 19, 2026

    @jglogan
    Contributor

    @mxey Thanks for the feedback, and sorry for the trouble with Time Machine. Could you create an enhancement issue requesting that documentation update? It seems a good idea. Feel free to submit a PR against that issue as well, but if not I'm sure someone (or I) will pick it up soon.

    Just to be sure, is your Time Machine destination volume on NAS? Or something else?

  10. kedryte commented on Mar 20, 2026

    @kedryte

    This is a really nasty bug. I've just now figured out that apple/container is the the culprit, but for months after installing it 1) my Time Machine backups haven't been completing, 2) half way through trying to back up my computer memory starts ballooning in size and eating up swap, 3) if I don't stop the backup my computer eventually crashes, and 4) the backup file has been slowing eating up terabytes of data on my NAS. So basically it wrecked my backups, my computer, and my NAS.

    I can confirm that Time Machine and apple/container still cause this issue with backups over SMB on Tahoe 26.3.1.

    I can also confirm that deleting or excluding ~/Library/Application Support/com.apple.container/ fixes the issue and everything works smoothly again.

    I also believe that these sparse images may have caused major problems using Migration Assistant to transfer to a new Mac. I was using an 80 Gbps Thunderbolt cable and my data should have been transferred in less than half an hour, but it took most of an entire day. I think it was somehow reading and transferring the entire non-sparse content of the files over the wire, although they did land in correct sparse form on the other side.

    I realize these issues are probably not the apple/container team’s fault, but I hope someone at Apple can take a look because yeesh, this really wreaked havoc on my systems for months and was hard to identify and fix.

    cc #612 #881

  11. mxey commented on Mar 20, 2026

    @mxey

    Just to be sure, is your Time Machine destination volume on NAS? Or something else?

    @jglogan Happened with either one.

  12. arnoldasbrazys commented on Mar 20, 2026

    @arnoldasbrazys

    +1 for spent fighting whole day on time machine backups failing

  13. thheller commented on Apr 1, 2026

    @thheller

    Ran into this as well. Only started playing with container yesterday (0.10.0) and suddenly my TimeMachine backups fails. I created a new 2 TB share on my NAS and immediately started a new backup. It failed to backup my 1TB disk claiming the share was full. So something was wrong. Since container was my only real change to the system I looked here first and found this issue.

    The worst problem is that I can't even use TimeMachine to restore anything. In Finder it just says "No Completed Backups" and lists the 4 TB external SSD as full. No idea how to recover from that.

    tmutil addexclusion ~/Library/Application Support/com.apple.container fixed it, so that at least the new backup on the NAS went through.

  14. 5 remaining items

  15. sly74fr commented on Jul 17, 2026

    @sly74fr

    Hi,

    For instance the issue is the same with the Apple-provided rsync...
    Looks like those are not regular POSIX files.

    Any fix possible as this bug is nearly one year old now ?

    Best regards,

  16. dkav commented on Jul 27, 2026

    @dkav

    I experienced this with a backup on a HDD but not on a SSD. Both are APFS backup volumes. Erasing and reformating the HDD volume didn't resolve the problem. As suggested by others I had to exclude ~/Library/Application Support/com.apple.container for the HDD backup to complete. I am using MacOS 26 and I have one container machine.

  17. wintermeyer commented on Aug 2, 2026

    @wintermeyer

    I ran into this on container 1.2.0 (commit 6e65319, macOS 26.6, M4) while benchmarking a six-service stack for a magazine article. Since most reports here are from older versions, here is some current data in case it helps.

    How fast it grows. After roughly an hour of repeated create/destroy cycles, ~/Library/Application Support/com.apple.container/snapshots held 42 files totalling 47 GB, even though the system never had more than 5 images (205 MB in total) and 6 containers at any one time.

    Why backup tools choke on it. Each snapshot file reports an apparent size of 550,829,555,712 bytes (513 GiB) while only about 2.8M blocks (~1.4 GB) are actually allocated. Across those 42 files that is roughly 21 TiB of apparent size sitting on 47 GB of disk. This lines up with what @sly74fr reported about Apple's rsync above: any tool that goes by the file size instead of the allocated blocks will happily try to move 513 GiB per container.

    Reclaiming does not work as expected. At that point container image prune reported Reclaimed Zero KB, and there is no container system prune. The space only came back after I deleted every container and every image, which brought the directory down to 3 files and 1.4 GB. Since keeping images around is the normal case, the directory just keeps growing in day-to-day use.

    Happy to re-run any of this if more detail would help narrow it down.

    An AI agent wrote this text in my name, unreviewed by me. The work behind it is mine; I only delegated the writing.

  18. afotherg commented on Aug 20, 2026

    @afotherg

    I came across this when testing my app https://github.com/afotherg/SpaceMonger-for-Mac

    I noticed that the container files on the time machine backup had allocated size of approx 50GB versus actual files were 1GB, and the logical size was 512GB

    Excluding from backup works for me, when you know about it!

  19. nadiaholmquist commented on Aug 21, 2026

    @nadiaholmquist

    I can confirm the issue affects Migration Assistant as well. Though in my case the migration did not end up going through correctly in the end.

    I was transferring directly from one machine to the other, and Migration Assistant would report the sizes of the various categories on disk it recognized correctly, but ultimately my many attempts at transfers would all fail because it claimed it ran out of disk space.

    I only noticed something was up because I then tried to make a Time Machine backup onto an 8TB hard drive, which just ate the size of the now probably un-sparse files and Migration Assistant pointed at that Time Machine backup showed file sizes that were simply impossible to have been on the source machine, and refused the transfer.

    Deleting the Container data and doing a new Time Machine backup shrunk the sizes to reasonable levels and allowed the transfer to complete.

  20. jounii commented on Aug 23, 2026

    @jounii

    I can add to my frusturation this. Time Machine to fresh APFS formatted drive was getting stuck even on initial backup. I could not figure out what was the cause, backupd logs weren't very helpful. Just telling something was a bit wrong. Time Machine was reporting no %-progress but free space was just dropping and dropping. Finally I just cancelled, rebooted and got it unstuck and with no backups.

    I though it might be bug in Time Machine, so I did the macOS Tahoe 26.6.2 update which for some reason ended up, related or not, into broken state. Possibly by corrupted localsnapshot files. Basically just force booting now to Recover Assistant, so I decided I use it's console to backup my data to that very same drive which I reformatted empty and put ditto to work. During the night it encountered the Apple container sparse files and basically tried to copy several 500GB "files" and said target device is out of space. Feels exactly what was happening with Time Machine.

    Now I'm still in progress verifying I got all important files copied and then try to macOS reinstall, it should not delete user files, but you never know with these things. Hopefully I can get sorted out and will put that container path to Time Machine exclude list and hope for the best..

    EDIT:

    The macOS Update issue was unrelated bug found from Apple migration process for macOS updates that prevented the update from progressing for me. Luckily Codex was able to find from log analysis the cause and workaround/fix without me resorting to full erase and reinstall.

    However the Time Machine issue and causing corruption for the localsnapshots is still there. I will probably try with https://github.com/biliboss/disky to scan files that are problematic for Time Machine to avoid issues in the future and have correct excludes in place.

  21. fuantaji commented on Sep 12, 2026

    @fuantaji

    I want to bring attention to this bug again.
    It took time to figure out why backup was hanging my macbook to the point that it was restarted by watchdog. (It appeared as if all apps were evicted from memory and system hanged.)
    I backup over samba connection.

    Only after noticing in lsof that it was during work with apple/container files, I have excluded apple/conainer folders for both local users from backup and it started working again.

    Can this be forwarded to Apple?

  22. jounii commented on Sep 12, 2026

    @jounii

    Only after noticing in lsof that it was during work with apple/container files, I have excluded apple/conainer folders for both local users from backup and it started working again.

    Can this be forwarded to Apple?

    After I though this a bit, it's kind of bug with Time Machine. It should know how to handle those files. However it's also issue with the containers. It probably should use the ~/Library/Caches/ directory for the images which is automatically excluded by Time Machine.

  23. sippsolutions commented on Sep 16, 2026

    @sippsolutions

    I threw my HDD into trash because I thought it's done after 10 years because of this. Same issue with a new drive. Claude found out if could be this bug. Added the exclusion for the container directory and trying a new backup now. Apple should fix this ASAP

  24. mschluepmann commented on Oct 8, 2026

    @mschluepmann

    This is indeed a severe error. I am running container on a Mac with a 512GB ssd. Look at the folder size of com.apple.container: 4.41TB on a 512GB drive... My whole Time Machine backups were gone due to this bug. Not a nice one.

    Image
  25. znvffv2p2f-gif commented on Oct 8, 2026

    @znvffv2p2f-gif
  26. neebong commented on Oct 18, 2026

    @neebong

    Confirm that I am seeing this as well, and excluding the folder from TM backups sorted the issues.

    I however do wonder tho, my TM backup was fine for a few months after I started playing with Container then stopped working on only one of the two NAS boxes I backup to.

  27. louisunlimited commented on Nov 13, 2026

    @louisunlimited

    Wanna hop in and say I'm seeing this as well. My computer crashed around 5 times for the past 2 days and working with Claude I was able to pin it down to ~/Library/Application Support/com.apple.container where it just hangs. For now as a workaround I excluded that folder from TimeMachine and it seems to be running better, but agree that this should be moved to higher priority and get it resolved.

  28. dkav commented on Nov 13, 2026

    @dkav

    @louisunlimited I believe #2406 resolves the issue, but you may have to delete the snapshots and containers folders for the fix to take effect.

  29. jglogan commented on Nov 16, 2026

    @jglogan
    Contributor

    @dkav @louisunlimited Yeah I had a quick look at that one and that's my read too. The ContainersService and VolumesService both have startup code to do prep and migration on the entity data so a follow-up issue and accompanying PR to add that metadata to existing disk image files would be helpful. I'm inclined to leave this open until we have something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions