Table of Contents

Recovering a broken Time Machine backup

Hopefully I will never need to look at this again, but I went through a lot of trouble making it work, so here it is.

Prep/Intro?

  1. Set up a VM (or physical box) with Ubuntu 14.04.6. I used 4c/16GB with a 100GB root drive and a 600GB data drive. Probably should have made that 800GB for the size of my backup. You can use NFS to augment disk space as necessary but your speeds will suffer greatly. And this process is already pretty slow.
  2. My .sparsebundle file was just shy of 300GB, generated in el Capitan, backed up to a synology NAS, then that was tar.gz'd and thrown into an archive
  3. Copied that tar.gz to the /data (600GB) partition, decompressed, and sync'd
  4. Software! You use two tools for this: sparsebundlefs to mount the sparsebundle and tmfs (timemachine filesystem) to deal with all the crazy hardlinks that time machine generates
  5. Sparsebundlefs is here but I've uploaded it here, tmfs is currently in the Ubuntu repos but I've put the deb here
  6. A numbered list didn't make sense for this section, but whatever

Do it

What did we learn?

Time Machine may be fine for one-off file recovery on a working system, but it SUCKS as an archival method. Don't do it.