Functions OneDrive and Time Machine? The very best methodology to Repair One Annoying Error with time Machine Simply!

I like the simplicity of utilizing Apple’s Time Machine for doing backups. You plug in an exterior arduous drive, and magically it’s going to create backups and snapshots within the background. That’s till you get a cryptic error like “An error has occurred whereas copying information.” Huh?! Okay, inform me extra, Time Machine! However, a part of “maintaining issues easy” means hiding away the main points of what’s inflicting a Time Machine error. After some digging round, I discovered the simple repair to this Time Machine error, and it hasn’t occurred since I corrected the issue. It seems, in my case, Microsoft OneDrive and Apple Time Machine weren’t enjoying properly collectively.

I’m really not a stranger to Time Machine errors. Again in 2019, I used to be getting Error Sort 11 points with my backup. There are some good troubleshooting suggestions in that Repair-It article, so if what you discover on this article doesn’t assist, I encourage you to have a look at that one because it has extra normal approaches to fixing Time Machine errors. This How-To article is a little more particular. But it surely took some time to determine what was precisely inflicting it.

This Repair-It article tells you how you can discover the logs which may be displaying the particular error after which use that info to right it. There could also be another Time Machine errors that you just encounter within the course of you can determine and repair as properly. (Trace: if you happen to don’t care about how I figured this out and simply need the repair, skip to the top of the article.)

The Time Machine Error & Getting Particulars On It

Right here’s what occurred. For fairly some time, Time Machine was simply chugging alongside, doing its factor. Then, I began getting alerts saying that the Time Machine backup had failed. After I went to the Time Machine choice pane throughout the System Preferences, there was the same old purple circle info icon.

Clicking on the purple info icon launched an “amazingly informative” description of the error. It mentioned: “Time Machine couldn’t full the again to ‘Time Machine Backup’” (clearly, if you happen to encounter this error, as an alternative of “Time Machine Backup,” it could be the title you gave your backup drive).

However then got here the super-informative Time Machine error message: “An error occurred whereas copying information.” That’s it.

As some fast troubleshooting, I did a number of the suggestions I discussed in my different restore article, together with the Disk Utility to research and restore the backup drive. And really additionally fully reformatting the backup drive and beginning the Time Machine course of from scratch. I did this a number of occasions.

However the error would preserve coming again. Not after the primary few backups, however some time later. It was extraordinarily odd. And, I couldn’t get any info on it as a result of, as I mentioned, Apple likes to cover the error particulars away.

I noticed I wanted to have a look at the log information to see precisely what Time Machine was complaining about. However Time Machine doesn’t have straightforward to entry log. I checked within the Console utility app, however there was an excessive amount of info to undergo; it wasn’t an environment friendly method to do that.

That is the place a Terminal command really helped me tremendously. As a result of macOS is actually Apple’s model of Linux (form of), utilizing the Terminal app might be extraordinarily highly effective, helpful, and useful. Linux instructions might be executed from throughout the Terminal app, providing you with superpowers you didn’t know you had.

First, let me say I’m NOT a Linux professional. Nor do I faux to know a lot if something about working with the command line. What I do know is that there are many actually sensible individuals who do Linux instructions the entire time – these individuals are geek gods in my thoughts!

I’ve, nevertheless, run sufficient Linux instructions to have an honest understanding of them. And to actually recognize their energy.

I digress. Let me share the Linux command that helped me determine this specific difficulty with Time Machine (and the way I got here to study that Microsoft OneDrive was the wrongdoer).

Utilizing Terminal to get Time Machine Errors

I wanted the main points. What should be blamed for this error? After looking out round for a simple technique to get detailed Time Machine logs, I stumbled throughout the Terminal command that may permit me to do that. Right here it’s:

printf 'e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 6h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'

I can’t let you know precisely what all of this interprets to. It says to look into the “com.apple.TimeMachine” log and have a look at the previous 6 hours (word, you’ll be able to change that quantity). It’ll additionally search for the phrases “eMac” and “etat” after which print all of it to the display screen. You simply run that command utilizing the Terminal app which is discovered within the Utilities folder.

It seems this was precisely what I wanted. I did resolve to reformat my backup drive yet another time after which let the backup run in a single day with out me utilizing my Mac – I wished to run the command proper after the error appeared. So I did simply that, and voila, the error popped up once more.

I ran the command.

Time Machine error log - HighTechDad Time Machine and OneDrive error

I used to be a bit shocked by the consequence. The log file was enormous. I saved the outcomes as a textual content file, and that file was 72 MBs in measurement!!! Ummm…that’s a whole lot of errors. (By the best way, after doing the repair that I word later on this article, I reran the identical command. The ensuing file measurement was solely 41 KB! So one thing did, clearly, work.)

So, I began digging by the errors and began to note a standard factor. Virtually 100% of the “Failed to repeat” errors have been for information that resided on my native machine’s OneDrive!

The Perpetrator: Microsoft OneDrive

After I began to consider it, that made absolute sense. Microsoft OneDrive is a sophisticated beast. And, there’s a characteristic that I like and use inside OneDrive that I’m guessing might have been complicated Apple’s Time Machine. Inside OneDrive, you may make some information on-demand to save lots of area in your laptop computer. The file title exists, however the file is actually only a pointer to one thing saved within the cloud. I wrote about on-demand and select-sync, two extraordinarily helpful OneDrive options.

If, for instance, you will have a picture that’s marked as on-demand and also you need to preview it by tapping on the area bar, you received’t get a preview. You will have to retailer the file regionally to have the ability to try this.

I hypothesize that Time Machine was getting confused with these digital or pointer information. It was making an attempt to again up these information however not with the ability to as a result of they weren’t actually there to again up. So that’s the reason it mentioned an error had occurred.

HighTechDad Time Machine One Drive error cryptic error message time machine - HighTechDad™

You possibly can, I assume, permit Time Machine to have the permission to obtain the information within the OneDrive drive routinely. Nonetheless, I believe that may fully defeat the aim of utilizing the on-demand facet of OneDrive as a result of Time Machine would routinely preserve copies regionally.

The entire level of the on-demand characteristic of OneDrive is to maintain issues within the cloud and save area in your arduous drive.

Then I began to suppose…if all the things inside my OneDrive listing is already synced throughout the cloud, why the heck do I must take a Time Machine backup of that complete listing?

At that time, I had two the reason why I actually didn’t want OneDrive to be backed up by Time Machine:

  1. it was inflicting errors due to the on-demand characteristic, I imagine, and
  2. it was already backed as much as the cloud.

The Repair: Exclude OneDrive from the Time Machine Backup

Lengthy story brief (TL;DR model), the best way that I fastened this was to easily exclude my Microsoft OneDrive listing from the Apple Time Machine Backup. Actually, you don’t must do it since that listing is already within the cloud and backed up there.

To exclude a listing from Time Machine, merely open the Time Machine System Preferences pane. Then click on on the Choices… button.

Time Machine exclude directory from backup - HighTechDad OneDrive and Time Machine fix

Subsequent, click on on the + button so as to add a listing (or file) to the exclude listing. One other window will open while you try this, permitting you to navigate to the listing you need to exclude. On this case, I chosen my private OneDrive account (I do have a Enterprise one as properly).

Exclude OneDrive from Time Machine - HighTechDad how to fix OneDrive issues with Time Machine

And when you click on on the Exclude button, OneDrive will present up throughout the “Exclude these things from backups” listing. Simply click on Save and you might be completed.

HighTechDad Time Machine One Drive error ondrive - HighTechDad™

Now, all that it’s important to do is let Time Machine work its magic! So I let it run a number of days earlier than I declared victory. And to make sure, I ran the Terminal command I listed earlier a number of occasions a number of hours and days aside. And as I discussed earlier than, the Time Machine error disappeared (the log file went from 72 MB to 41 KB, and there was no signal of any file copying errors throughout the error log).

Additionally, curiously, as a result of I had put my private OneDrive listing into the exclusion listing, after I tried to place my Enterprise OneDrive listing into the identical listing, it was greyed out and couldn’t be chosen.

However that was the simple repair! I simply had to determine what was the reason for the generic Time Machine error; that was the arduous half. (Eradicating the OneDrive listing really has sped up my backup as there are fewer information to course of.)

Do go away a comment if this repair helped you or if you happen to encountered one other kind of error that couldn’t be resolved like this.

HTD says: The lesson I realized from troubleshooting a Time Machine backup error of not with the ability to copy a file was that maybe some issues don’t even have to be backed up within the first place! Particularly whether it is OneDrive which is already backing issues up within the cloud.

– Commercial –

– Commercial –

– Commercial –