Skip to content

Instantly share code, notes, and snippets.

@NewFolk
NewFolk / fix_timemachine_backup.sh
Created March 17, 2018 17:46 — forked from ahknight/fix_timemachine_backup.sh
When Time Machine asks you to delete your backups and start over, ignore it. Run this and then start a backup again.
#!/bin/bash -x
# Generally based on ideas found at:
# http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
#
# Reduced the ideas there down to their essentials.
# 1. Unlock the image.
# 2. Reset the saved failure in the backup metadata.
# 3. Verify/fix the filesystem.