Xojo Conferences
MBSOct2019CologneDE

« MBS FileMaker Plugin,… | Home | Text to Webviewer Scr… »

Fixing a broken time machine backup


If you see a dialog like this, your backup may be broken or just have a little problem with the disk image. So usually we try to repair it instead of starting over. This are the steps necessary:

First turn of backups and mount the Time Machine disk and check what the name of the disk and the sparse bundle inside is, so you can adjust the names. hdiutil will return the disk number, which must be used for the next two calls:

sudo su -
hdiutil attach -nomount -noverify -noautofsck /Volumes/DiskName/BackupName.sparsebundle
fsck_hfs -dfy /dev/diskXs2
hdiutil detach /dev/diskXs2

After fsck_hfs repaired the disk image on your time machine, you may need to remove the nouchg flag for the sparse bundle:

chflags -R nouchg /Volumes/DiskName/BackupName.sparsebundle

In the plist file inside the bundle, you may need to remove the decline date where the backup was marked broken:

<key>RecoveryBackupDeclinedDate</key>
<date>some-data</date>

And set the VerificationState back to zero:

<key>VerificationState</key>
<integer>0</integer>

If you did all the steps, you can enable backups again and let it continue with the same time machine sparse bundle.
We did those fixes a few time already and usually fsck reported just a minor problem.
20 02 19 - 07:03
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.