The new OneDrive that builds on the macOS FileProvider API (which was forced by Apple deprecating kext) might cause an issue that prevents user from restoring Time Machine backups.
Today I got my MacBook back from Apple Support, they somehow wiped my data for a Bottom Case replacement, which is ridiculous, but that's another story. I tried restore the Time Machine backup that I created, and receiving the following error:
My Mac is 512GB model, and the backup was made on that exact same device. It is not reasonable that there's 700GB of data in a 512GB hard drive, nor a backup cannot be restored by the same machine that creates it. After investigation, I found that there is a folder in my local Library folder that have size of 400GB (total size of my OneDrive), but it is only 3GB on disk (which is the File On-Demand downloads), which is a container of OneDrive:
After excluding this folder from Time Machine, the issue not seems to happen. So, for OneDrive users that have more files in the OneDrive than your computer hard drive can store, please make sure to exclude the above folder from Time Machine. I believe this is a bug of Time Machine or Migration Assistant, since the actual size occupied on disk should be considered instead of the total size.
Today I got my MacBook back from Apple Support, they somehow wiped my data for a Bottom Case replacement, which is ridiculous, but that's another story. I tried restore the Time Machine backup that I created, and receiving the following error:
My Mac is 512GB model, and the backup was made on that exact same device. It is not reasonable that there's 700GB of data in a 512GB hard drive, nor a backup cannot be restored by the same machine that creates it. After investigation, I found that there is a folder in my local Library folder that have size of 400GB (total size of my OneDrive), but it is only 3GB on disk (which is the File On-Demand downloads), which is a container of OneDrive:
Bash:
~/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite/
After excluding this folder from Time Machine, the issue not seems to happen. So, for OneDrive users that have more files in the OneDrive than your computer hard drive can store, please make sure to exclude the above folder from Time Machine. I believe this is a bug of Time Machine or Migration Assistant, since the actual size occupied on disk should be considered instead of the total size.