{
 "topic": "macos-disk-space-and-archive",
 "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive",
 "title": "How to free disk space on macOS properly and move files safely to a server or to cheap cloud storage",
 "description": "What to delete on a full Mac (caches, simulators, snapshots, purgeable space), how to measure the real gain when there are APFS clones, where an archive is cheapest to keep (Hetzner Storage Box, B2, R2, Glacier, not iCloud) and how to move data with verification before the original is deleted (November 2026).",
 "aliases": [
  "disk space",
  "freeing space",
  "disk cleanup",
  "full disk",
  "decluttering",
  "archive",
  "moving files",
  "backup",
  "free disk space",
  "purgeable",
  "System Data",
  "APFS",
  "clonefile",
  "snapshots",
  "tmutil",
  "Time Machine",
  "iCloud Drive",
  "iCloud Drive (Archive)",
  "Optimize Mac Storage",
  "DerivedData",
  "simctl",
  "simulators",
  "Docker.raw",
  "Mole",
  "dust",
  "rsync",
  "openrsync",
  "rclone",
  "restic",
  "Kopia",
  "BorgBackup",
  "Hetzner Storage Box",
  "Backblaze B2",
  "Cloudflare R2",
  "Glacier Deep Archive",
  "Wasabi",
  "xattr",
  "AppleDouble",
  "NFD",
  "git bundle"
 ],
 "domain": "other",
 "created": "2026-11-24",
 "last_checked": "2026-11-24",
 "claims": [
  {
   "ref": "macos-disk-space-and-archive#c1",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c1",
   "card": "macos-disk-space-and-archive",
   "id": "c1",
   "status": "valid",
   "claim": "An APFS clone (clonefile, cp -c) shares its data blocks with the original, so deleting one copy frees no space while the other exists.",
   "quote": "The cloned file dst shares its data blocks with the src file",
   "source": "man:clonefile",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c2",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c2",
   "card": "macos-disk-space-and-archive",
   "id": "c2",
   "status": "valid",
   "claim": "Mole admits that its fast folder estimates can count shared APFS blocks more than once.",
   "quote": "fast folder estimates can still count shared blocks more than once.",
   "source_url": "https://github.com/tw93/Mole",
   "tier": "T2",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c3",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c3",
   "card": "macos-disk-space-and-archive",
   "id": "c3",
   "status": "valid",
   "claim": "A Mac counts the space taken by local Time Machine snapshots as available.",
   "quote": "Your Mac counts the space used by snapshots as available storage.",
   "source_url": "https://support.apple.com/en-us/102154",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c4",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c4",
   "card": "macos-disk-space-and-archive",
   "id": "c4",
   "status": "valid",
   "claim": "Purgeable files cannot be removed by hand; macOS removes them itself when space runs short.",
   "quote": "you can't manually remove the files that are designated purgeable, but macOS removes them as space is required",
   "source_url": "https://support.apple.com/guide/disk-utility/get-detailed-information-about-a-disk-dskutl1005/mac",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c5",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c5",
   "card": "macos-disk-space-and-archive",
   "id": "c5",
   "status": "valid",
   "claim": "The folder iCloud Drive (Archive) is a local copy of the files, created when iCloud Drive is turned off.",
   "quote": "If you keep a local copy of your files, they copy to a folder called iCloud Drive (Archive) in your home folder.",
   "source_url": "https://support.apple.com/en-us/126628",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c6",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c6",
   "card": "macos-disk-space-and-archive",
   "id": "c6",
   "status": "valid",
   "claim": "Xcode Settings > Components shows how much space removing each component recovers, simulator runtimes included.",
   "quote": "Xcode shows the installed and enabled components along with the amount of storage you can recover if you remove them.",
   "source_url": "https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c7",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c7",
   "card": "macos-disk-space-and-archive",
   "id": "c7",
   "status": "valid",
   "claim": "xcrun simctl runtime delete --outdated removes the runtimes for which a newer version exists.",
   "quote": "--outdated | -o  Delete runtimes that have a newer version available with the same runtime identifier.",
   "source": "man:simctl",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c8",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c8",
   "card": "macos-disk-space-and-archive",
   "id": "c8",
   "status": "valid",
   "claim": "Docker.raw is a sparse file, and many tools show its maximum size instead of the actual one.",
   "quote": "Note that many tools report the maximum file size, not the actual file size.",
   "source_url": "https://docs.docker.com/desktop/troubleshoot-and-support/faqs/macfaqs/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c9",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c9",
   "card": "macos-disk-space-and-archive",
   "id": "c9",
   "status": "valid",
   "claim": "In Mail, deleting attachments from an IMAP account also deletes them from the server, with no way to get them back.",
   "quote": "attachments are deleted from the mail server and can't be retrieved.",
   "source_url": "https://support.apple.com/guide/mail/delete-emails-and-manage-storage-mlhlp1001/mac",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c10",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c10",
   "card": "macos-disk-space-and-archive",
   "id": "c10",
   "status": "valid",
   "claim": "/usr/bin/rsync on macOS 27 is openrsync, compatible with the rsync 2.6.9 protocol.",
   "quote": "openrsync: protocol version 29",
   "source": "man:rsync",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c11",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c11",
   "card": "macos-disk-space-and-archive",
   "id": "c11",
   "status": "valid",
   "claim": "openrsync accepts only a part of rsync's options.",
   "quote": "openrsync accepts only a subset of rsync’s command line arguments",
   "source_url": "https://derflounder.wordpress.com/2025/04/06/rsync-replaced-with-openrsync-on-macos-sequoia/",
   "tier": "T4",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c12",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c12",
   "card": "macos-disk-space-and-archive",
   "id": "c12",
   "status": "valid",
   "claim": "openrsync rejects the -X flag (GNU rsync's extended attributes).",
   "quote": "rsync: invalid option -- X",
   "source": "man:openrsync-flagtest",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c13",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c13",
   "card": "macos-disk-space-and-archive",
   "id": "c13",
   "status": "valid",
   "claim": "In GNU rsync 3.x -E means executability, not extended attributes.",
   "quote": "--executability, -E      preserve executability",
   "source_url": "https://man7.org/linux/man-pages/man1/rsync.1.html",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c14",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c14",
   "card": "macos-disk-space-and-archive",
   "id": "c14",
   "status": "valid",
   "claim": "rclone check compares sizes and hashes (MD5/SHA1) and changes nothing on either side.",
   "quote": "It compares sizes and hashes (MD5 or SHA1) and logs a report of files that don't match. It doesn't alter the source or destination.",
   "source_url": "https://rclone.org/commands/rclone_check/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c15",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c15",
   "card": "macos-disk-space-and-archive",
   "id": "c15",
   "status": "valid",
   "claim": "A plain rclone copy does not keep macOS extended attributes; only local cloning keeps them.",
   "quote": "Cloning also preserves macOS-specific metadata such as extended attributes, which a normal copy does not",
   "source_url": "https://rclone.org/local/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c16",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c16",
   "card": "macos-disk-space-and-archive",
   "id": "c16",
   "status": "valid",
   "claim": "A cloud that recomposes the Unicode of names from macOS (NFD) can produce duplicates when copied back.",
   "quote": "Some cloud storage systems will then recompose the unicode, resulting in duplicate files if the data is ever copied back to a local filesystem.",
   "source_url": "https://rclone.org/docs/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c17",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c17",
   "card": "macos-disk-space-and-archive",
   "id": "c17",
   "status": "valid",
   "claim": "The macOS tar stores extended attributes and ACLs in AppleDouble format.",
   "quote": "Archive or extract extended ACLs and extended file attributes using copyfile(3) in AppleDouble format.",
   "source": "man:tar",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c18",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c18",
   "card": "macos-disk-space-and-archive",
   "id": "c18",
   "status": "valid",
   "claim": "git bundle does not include the working tree, the index, the stash, the configuration or the hooks.",
   "quote": "You will not include other local state, such as the contents of the index, working tree, the stash, per-repository configuration, hooks, etc.",
   "source_url": "https://git-scm.com/docs/git-bundle",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c19",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c19",
   "card": "macos-disk-space-and-archive",
   "id": "c19",
   "status": "valid",
   "claim": "In iCloud Drive, deleting a file on one device deletes it on all of them.",
   "quote": "When you delete a file on one device, it deletes on every device that you're signed in to with the same Apple Account.",
   "source_url": "https://support.apple.com/en-us/109344",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c20",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c20",
   "card": "macos-disk-space-and-archive",
   "id": "c20",
   "status": "valid",
   "claim": "iCloud Drive has a limit of 50 GB for a single file or folder.",
   "quote": "the 50 GB limit for an individual folder or file in iCloud Drive.",
   "source_url": "https://support.apple.com/en-euro/guide/mac-help/mchlc994344b/mac",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c21",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c21",
   "card": "macos-disk-space-and-archive",
   "id": "c21",
   "status": "valid",
   "claim": "A Hetzner Storage Box BX11 costs 3.20 € a month net.",
   "quote": "€ 3.20 per month, excl. VAT",
   "source_url": "https://www.hetzner.com/storage/storage-box/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c22",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c22",
   "card": "macos-disk-space-and-archive",
   "id": "c22",
   "status": "valid",
   "claim": "A Hetzner Storage Box BX11 has 1 TB.",
   "quote": "| Available storage:  | 1 TB  |",
   "source_url": "https://www.hetzner.com/storage/storage-box/bx11/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c23",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c23",
   "card": "macos-disk-space-and-archive",
   "id": "c23",
   "status": "valid",
   "claim": "A Hetzner Storage Box BX21 costs 10.90 € a month net.",
   "quote": "€ 10.90 per month, excl. VAT",
   "source_url": "https://www.hetzner.com/storage/storage-box/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c24",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c24",
   "card": "macos-disk-space-and-archive",
   "id": "c24",
   "status": "valid",
   "claim": "A Hetzner Storage Box BX21 has 5 TB.",
   "quote": "| Available storage:  | 5 TB  |",
   "source_url": "https://www.hetzner.com/storage/storage-box/bx21/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c25",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c25",
   "card": "macos-disk-space-and-archive",
   "id": "c25",
   "status": "valid",
   "claim": "A Storage Box has unlimited traffic.",
   "quote": "Each Storage Box comes with unlimited traffic.",
   "source_url": "https://docs.hetzner.com/storage/storage-box/general/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c26",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c26",
   "card": "macos-disk-space-and-archive",
   "id": "c26",
   "status": "valid",
   "claim": "A Storage Box has an extended SSH service on port 23 with rsync and BorgBackup.",
   "quote": "The Storage Box provides an extended SSH service on port 23. With this service, you can use rsync, BorgBackup, and some additional command line tools.",
   "source_url": "https://docs.hetzner.com/storage/storage-box/access/access-ssh-rsync-borg/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c27",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c27",
   "card": "macos-disk-space-and-archive",
   "id": "c27",
   "status": "valid",
   "claim": "Restic works with a Storage Box natively through the SFTP backend.",
   "quote": "Restic is natively supported with the SFTP backend.",
   "source_url": "https://docs.hetzner.com/storage/storage-box/access/access-ssh-rsync-borg/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c28",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c28",
   "card": "macos-disk-space-and-archive",
   "id": "c28",
   "status": "valid",
   "claim": "A deleted Storage Box snapshot is lost for good, because the snapshots live in the same box.",
   "quote": "it means that this specific snapshot is **lost permanently**.",
   "source_url": "https://docs.hetzner.com/storage/storage-box/snapshots/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c29",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c29",
   "card": "macos-disk-space-and-archive",
   "id": "c29",
   "status": "valid",
   "claim": "Backblaze B2 costs 6.95 USD per TB a month.",
   "quote": "$6.95 / TB / mo",
   "source_url": "https://www.backblaze.com/cloud-storage/pricing",
   "tier": "T2",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c30",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c30",
   "card": "macos-disk-space-and-archive",
   "id": "c30",
   "status": "valid",
   "claim": "Egress from B2 is free up to 3x the average stored data, then 0.01 USD/GB.",
   "quote": "Up to 3x of average monthly data stored, then $0.01/GB for additional egress",
   "source_url": "https://www.backblaze.com/cloud-storage/pricing",
   "tier": "T2",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c31",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c31",
   "card": "macos-disk-space-and-archive",
   "id": "c31",
   "status": "valid",
   "claim": "Cloudflare R2 charges nothing for egress in any storage class.",
   "quote": "There are no charges for egress bandwidth for any storage class.",
   "source_url": "https://developers.cloudflare.com/r2/pricing/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c32",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c32",
   "card": "macos-disk-space-and-archive",
   "id": "c32",
   "status": "valid",
   "claim": "S3 Glacier Deep Archive costs about 1 USD per TB a month.",
   "quote": "At just $0.00099 per GB-month (or $1 per TB-month)",
   "source_url": "https://aws.amazon.com/s3/storage-classes/glacier/",
   "tier": "T2",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c33",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c33",
   "card": "macos-disk-space-and-archive",
   "id": "c33",
   "status": "valid",
   "claim": "S3 Glacier Deep Archive has a minimum storage duration of 180 days.",
   "quote": "S3 Glacier Deep Archive has a minimum storage duration of 180 days",
   "source_url": "https://aws.amazon.com/s3/pricing/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2026-12-24"
  },
  {
   "ref": "macos-disk-space-and-archive#c34",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c34",
   "card": "macos-disk-space-and-archive",
   "id": "c34",
   "status": "valid",
   "claim": "restic check --read-data downloads all pack files of the repository, which costs traffic.",
   "quote": "Since `--read-data` has to download all pack files in the repository, beware that it might incur higher bandwidth costs than usual",
   "source_url": "https://restic.readthedocs.io/en/stable/045_working_with_repos.html",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  },
  {
   "ref": "macos-disk-space-and-archive#c35",
   "url": "https://stacks.jakubdudek.com/macos-disk-space-and-archive/c35",
   "card": "macos-disk-space-and-archive",
   "id": "c35",
   "status": "valid",
   "claim": "Kopia deduplicates content across the whole repository.",
   "quote": "Kopia deduplicates content across the entire repository.",
   "source_url": "https://kopia.io/docs/features/",
   "tier": "T1",
   "checked": "2026-11-24",
   "valid_until": "2027-02-22"
  }
 ],
 "as_of": "2026-12-04",
 "note": "A claim says what its source said on the day it was checked. \"valid_until\" is the date by which it should be checked again, not a promise that it is true today.",
 "license": "CC BY 4.0",
 "author": "Jakub Dudek",
 "conclusions": "The real gain is measured with `df` before and after, not with a sum of `du`. An APFS clone shares blocks with the original [c1], and even clean-up tools such as Mole admit that their estimates count shared blocks several times [c2]. The system counts Time Machine snapshots and purgeable files as available space and frees them by itself [c3, c4], so deleting them by hand rarely gains anything.\n\nFirst delete what will rebuild itself. Xcode shows how much removing each simulator runtime recovers [c6], and `simctl runtime delete --outdated` removes the outdated ones in bulk [c7]. `Docker.raw` is a sparse file, so its size in Finder lies [c8]. Mail's data is not touched by hand: deleting attachments from an IMAP account deletes them on the server too [c9]. `iCloud Drive (Archive)` is a local copy made when iCloud Drive was turned off [c5]. Whether those files are still in the cloud has to be checked before deleting.\n\niCloud Drive is not fit to be an archive. Deleting a file on one device deletes it everywhere [c19], and a single file or folder can be at most 50 GB [c20]. The cheapest serious option is a Hetzner Storage Box: 1 TB for 3.20 € net (BX11) or 5 TB for 10.90 € net (BX21) [c21, c22, c23, c24], unlimited traffic [c25] and SSH on port 23 with rsync, Borg and restic [c26, c27]. The box's snapshots live in the box itself, so they are not a second copy [c28]. As a second place, with another provider: B2 for 6.95 USD/TB with free egress up to 3x the stored data [c29, c30], or R2 with no egress fees [c31]. Glacier Deep Archive costs about 1 USD/TB but has a minimum of 180 days [c32, c33].\n\nFor an archive restic or Kopia is better than bare rsync: they encrypt and deduplicate [c35]. The full verification `restic check --read-data` downloads the whole repository [c34], which on a Storage Box costs only time, and in a cloud with paid egress real money. The system `/usr/bin/rsync` is openrsync, compatible with 2.6.9, with a cut-down set of options [c10, c11]. It rejects `-X` [c12], and in GNU rsync 3.x the letter `-E` means something else than in openrsync [c13], so scripts do not carry over between the two.\n\nmacOS metadata gets lost on the way. A plain rclone copy loses xattrs [c15], names in NFD can produce duplicates when copied back [c16], and bundles (.fcpbundle, .photoslibrary, .logicx) are first packed with the macOS `tar`, which keeps xattrs and ACLs [c17]. A push or a `git bundle` does not take the working tree or the stash [c18]. The original is deleted only after a successful verification: `rclone check` compares hashes without changing anything on either side [c14]; for restic, `check --read-data` plus restoring a sample and `diff -r`.",
 "history": []
}
