Skip to content

Instantly share code, notes, and snippets.

@mrlnc
Last active September 9, 2024 14:22
Show Gist options
  • Save mrlnc/ff5b91f13dafc0bc20fd3af219505ff5 to your computer and use it in GitHub Desktop.
Save mrlnc/ff5b91f13dafc0bc20fd3af219505ff5 to your computer and use it in GitHub Desktop.
iCloud-Download via privacy.apple.com FAILS

I like to keep a local copy for any cloud-stored data, and so I regularly pull full backups from Apple's iCloud. On privacy.apple.com you can request a full archive for any of Apple's cloud services. Unfortunately, this somewhat broke in early 2024 and the ZIP archives have been corrupted since:

Decompression failed

iCloud Drive Part 1 of 6.zip Decompression failed.

I wasn't able to pull any working archive for quite a while, and since Apple doesn't have a bugtracker for these type of things, here's just my notes on the issue.

At least here, the issue seems to be related to file path encoding.

unzip on macOS reports:

error:  cannot create iCloud Drive Part 1 of 6/Drive/2023-12-08-185423-Cycling-Merlin���s Apple-�Watch.fit
        Illegal byte sequence

unzip on Ubuntu:

iCloud Drive Part 1 of 6/Drive/2023-12-08-185423-Cycling-Merlin’s Apple Watch.fit:  mismatching "local" filename (iCloud Drive Part 1 of 6/Drive/2023-12-08-185423-Cycling-MerlinтАЩs Apple┬аWatch.fit),
         continuing with "central" filename version

The Archive Utility on macOS previously failed to decompress these files, now it appears to work, and only the Safari built-in decompression fails. 🤷🏼

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