Time Machine How To Restore From Backup

broken image


Last updated: 29 September 2020

I had a nightmare restoring from a Time Capsule backup. Eventually I found a little-documented solution.

In Finder you navigate to the desired folder and THEN invoke Time Machine. If the desired folder does not appear in Time Machine, then maybe that folder was excluded when Time Machine made the backup. Power up your Mac and hold down the Command and R keys to enter the macOS Recovery Partition. Your Mac should boot to a screen that says macOS Utilities. Select Restore from Time Machine Backup and click Continue. Read the info on the Restore Your System page and click Continue.

  • Restore Time Machine Backup Files to Windows You need to first understand the file hierarchy of Time Machine backup files to navigate through the desired folder. After listing the files of the hard drive, you will find a folder named ' Backups.backupdb ' in the root folder.
  • A restore will take different amounts of time depending on your machine: the amount of data backed up (everything covered by your usual time machine backup), the speed of your connection to your Time Machine disk, and the speed of your iMac's internal disk.

In Brief

Restore mac from time machine

– I was unable to restore from a Time Machine backup. Error: 'An error occurred while restoring from the backup.' I found next to nothing online to solve this problem.

– The error log showed a '[RESTORE] critical failure (error: -5000…' for which there is no support online.

– The problem affected Time Machine backups on both a USB drive and an Apple Time Capsule.

– The solution is to identify the corrupted files in question and quarantine them (before optionally manually restoring them later).

– On Time Capsule backups, this solution is more complicated because of how the backups are saved and how difficult it is to edit them.

The problem

I was trying to restore my machine from a Time Machine backup to a new laptop in recovery mode.

A few hours into the restore (about three-quarters of the way through the data transfer) the restoration would always fail with 'An error occurred while restoring from the backup.'

I retried the backup to no avail; I got the same error. On inspecting the log (Window -> Log Window), I saw that there was a 'critical failure' that was not being handled gracefully by the Time Machine System Restore app in recovery mode. [Hat tip to drice99 for bringing the installer log to my attention, and Tom Fox for the photo below but one.]

In my case, the file or folder that I later found out was corrupted was a Mac App Store receipt folder for an application called 'WiFi Signal'. It later turned out that this app would always (at least on my system) produce a corrupt '_MASReceipt/receipt' folder. My final solution was to completely delete the app and find an alternative so that my fresh Time Machine backups don't get corrupted from this dodgy folder. But according to various user reports I've received via e-mail, this problem affects various apps.

I wasn't able to take another backup from my old machine. I had to fix the Time Machine backup to restore my system. How to zip a file on windows. Editing the Time Machine backup to remove the dodgy folder was difficult.

The solution

(1) Initially I needed a Finder and Terminal window so I had to setup the new Mac as new with no user data (as a complete fresh install) so I could fully access the Time Machine backup to apply the fix. Then I connected the backup to the Mac.

(2) In the case of the Time Capsule I had to first mount the backup:

• In Terminal, I ran these commands:

sudo su - How to cut sections of video in imovie.

Reinstall From Time Machine Backup

First we escalate our privileges.

Restore Mac From Time Machine

Quicktime for mac os 10.4.11. hdiutil attach -readwrite -noverify -noautofsck /Volumes/TimeMachine/.sparsebundle

Then we mount the Time Capsule ‘sparse bundle' as if it is a disk.

• By now I had the Time Capsule Time Machine backup of my system mounted as if it was a USB drive Time Machine backup. (So you can skip this second step if you're working with a USB drive and not a Time Capsule.)

(3) Then I had to delete the problematic folder that was identified in the log:

I took a backup of the folder I was deleting and put it on a USB thumb drive.

Then in Terminal, I ran this command:

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/MacOS/bypass rm -rfv /Volumes/[disk]/Backups.backupdb/[path]

NOTE: Since High Sierra the path of the bypass tool has changed, so use:

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -rfv /Volumes/[disk]/Backups.backupdb/[path]

How to open 32 bit apps on catalina. This command uses a Time Capsule ‘Safety Net' feature that lets us ‘bypass' restrictions and ‘remove' (rm) the problematic folder.

How to change thumbnail on imovie. To make this more easy to follow, he's a real world example:

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -rfv /Volumes/Backups/Backups.backupdb/Harry's Mac/2018-03-01-095034/Macintosh HD/Users/harryfear/Library/Application Support/WiFi Signal/_MASRreceipt

Note that where your path has apostrophes and spaces (such as with Apple computer names like Harry's Mac), you'll have to escape those characters by putting a backslash before them as I did above. So, …/John's iMac/… becomes …/John's iMac/…

In cases where you receive error 'Operation not permitted' on trying the above command in Terminal on MacOS, please try running the same command (without sudo at the beginning) in MacOS Recovery Mode instead and use the Terminal app there.

How To Reinstall Mac Os

(4) Then go back into Recovery mode on the Mac and reattempt to restore from the modified backup.

How To Restore From Time Machine Backup

Let me know if it doesn't work.





broken image