0

I was running out of space on my OS drive, so I followed the instructions at this answer, by copying the files to another drive, then replacing C:\Users with a <JUNCTION> pointing to the location on the new drive. Everything seemed to work fine, until I noticed that every file in OneDrive is now empty. All the files are still there, they just are all now zero bytes.

In the web UI, it shows an edit to each file at the time that I made the change. I know I can restore each file individually, but there are 975 files, and I'd rather eat rocks than spend a day clicking through 975 files to restore them one at a time.

OneDrive has a help page for restoring OneDrive to a previous time, but this option is not available because, as that page notes, I must have a Microsoft 365 Subscription.

This option is only available with a Microsoft 365 subscription. If you don't have a subscription, see available plans.

Interestingly, on the available plans page, it does list a free option as one of the Microsoft 365 subscriptions, but apparently that doesn't count. Clicking the link to sign up, takes you to a page where only the paid options are available - the free one is no longer listed. And trying to follow the instructions without signing up for a paid plan just leads into an upsell loop. No thank you please.

Is there any other way? Is there an API I can hit?

Giacomo1968
59.1k23 gold badges180 silver badges225 bronze badges
asked 13 hours ago
2
  • 2
    Can't you just restore from the backup you took before hand? Commented 10 hours ago
  • 1
    Onedrive will use links to files for files that haven't been downloaded, and once you move onedrive away from its original location without actually telling OneDrive, it will assume you deleted the files and sync that to the cloud, deleting them there as well. Because they are links, you end up with empty files. First check in your online location if all files are gone, or only some. If gone, restore from trash. Once done, remember, you can always right-click files in OneDrive and delete the local copy to free up local space, but if you want to move, move through OneDrive client. Commented 7 hours ago

1 Answer 1

0

As far as OneDrive knows, you deleted all those files that you moved on your local computer. Deleting the files locally tells OneDrive to begin deleting them in the cloud storage. You could look through the OneDrive Recycle Bin, but, what you really need to do it use the correct method for your system and needs to free up space.

Compounding this issue is that we do not know which of the files were stored completely locally and which were just stubs pointing to the actual files in the cloud. Those files that were only stubs locally need to be restored from the OneDrive Recycle Bin, because that's the only place they may exist right now.

First, BACKUP ALL THE DATA YOU'RE MOVING.

Second, go through the OneDrive Recycle Bin on the OneDrive website and restore all the files there to their original locations.

Third, move everything back to its original location and let OneDrive re-sync to get good copies of everything safely stored away in OneDrive.

Fourth, make sure everything has good copies, that sync errors have been resolved, etc.

Fifth, MAKE ANOTHER BACKUP NOW THAT YOU'VE GOT ALL THE DATA. This may involve downloading a lot, but you need to do this or you risk losing more data.

Finally, choose the right method to free up space based on your specific needs and requirements:

answered 2 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.