When you run the OneDrive for Business file restore feature on a shared library, the restored files may not include changes made in the last few hours or even the last day. This happens because the file restore feature does not capture changes that were synced or uploaded just before the restore window was configured. This article explains why shared libraries show missing recent changes after a restore and provides the exact steps to recover those lost edits using version history and site collection recovery.
Key Takeaways: Restoring Missing Recent Changes in Shared Libraries
- OneDrive file restore > Configure restore window: The restore window must be set to a time before the missing edits were made, or those edits will be excluded.
- Version history on each file: Use version history to manually recover the most recent version of a file if it is newer than the restored state.
- SharePoint site collection recovery: When file restore misses many recent changes, use the SharePoint admin center to restore the entire site collection to a point in time before the edits were lost.
Why OneDrive File Restore Misses Recent Changes in Shared Libraries
The OneDrive for Business file restore feature works by reverting files and folders in a library to a previous state based on a time window you specify. However, shared libraries are stored in SharePoint site collections, not in a user’s personal OneDrive. The file restore tool for shared libraries uses a snapshot of the library at the beginning of the restore window. Any changes made after that snapshot was taken are not included in the restore process. This means if a user edited a file 30 minutes before you started the restore, and the restore window started 2 hours ago, that edit will be lost because it falls outside the snapshot. Additionally, the file restore feature does not restore deleted items that were permanently deleted before the start of the restore window. The tool also does not restore versions of files that were created after the snapshot point. This behavior is by design and affects all SharePoint document libraries, including those accessed through OneDrive.
Shared Library vs Personal OneDrive Restore Differences
For a personal OneDrive library, the file restore feature can roll back to a point within the last 30 days and includes all changes made up to that point. For shared libraries in SharePoint, the restore window is limited to the last 30 days as well, but the snapshot is taken at the start of the window. If the library had recent edits that were not yet synced to the server at the time of the snapshot, those edits are lost. This is more common in shared libraries because multiple users may be editing files simultaneously, and the sync client may have a delay.
Steps to Recover Missing Recent Changes After a File Restore
If you have already run a file restore and notice that recent changes are missing, follow these steps to recover them. Start with the least invasive method and proceed to more comprehensive recovery if needed.
Method 1: Restore Using Version History for Individual Files
- Open the affected file in a browser
Navigate to the SharePoint document library or the OneDrive shared library that was restored. Locate the file that is missing recent changes. Click the file name to open it in the browser. - Access version history
Click the three-dot menu on the file and select Version history. A panel opens showing all saved versions of the file with timestamps and user names. - Identify the most recent version before the restore
Look for a version with a timestamp that is after the restore time but before the file restore started. If the file restore ran at 3:00 PM and the version was saved at 2:45 PM, that version is the one you need. - Restore the specific version
Click the three-dot menu next to that version and choose Restore. This overwrites the current file with the selected version. Repeat for each file that is missing recent changes.
Method 2: Manually Recover Deleted or Overwritten Files Using the Recycle Bin
- Open the SharePoint site’s Recycle Bin
In the library, click the Recycle Bin link in the left navigation pane. If you do not see it, go to the site settings and click Site contents, then select Recycle Bin from the top menu. - Check the first-stage Recycle Bin
Look for any files that were deleted during the restore process. These files will have the original file names and timestamps. Select the files you need and click Restore. - Check the second-stage Recycle Bin if needed
If the file is not in the first-stage bin, scroll to the bottom and click Second-stage recycle bin. Restore the file from there.
Method 3: Use SharePoint Site Collection Recovery for Large-Scale Restoration
- Sign in to the Microsoft 365 admin center
Go to admin.microsoft.com and sign in with a SharePoint admin or Global admin account. - Open the SharePoint admin center
In the admin center, select SharePoint from the left navigation. If you do not see it, click Show all and then select SharePoint. - Navigate to site collections
In the SharePoint admin center, click Sites > Active sites. Find the site collection that contains the shared library you restored. - Select the site and start recovery
Click the checkbox next to the site name. Then click the Restore button at the top of the list. A panel opens allowing you to choose a date and time to restore the entire site collection to. - Set the restore point to before the missing edits
Choose a date and time that is before the recent changes were made but after the last known good state. For example, if the missing edits were made at 2:00 PM, set the restore point to 1:30 PM. Click Restore. - Wait for the restoration to complete
The restoration process can take several minutes to a few hours depending on the size of the site collection. You will receive a confirmation email when it is done.
If OneDrive File Restore Still Misses Changes After These Steps
File restore ran but some files are still missing
If you followed the version history or recycle bin steps and some files are still missing, check whether the files were stored in a subfolder that was not restored. The file restore feature restores all files in the library, but if a subfolder was deleted before the restore window, it may not be restored. Use the SharePoint admin center to restore the site collection to a point before the subfolder was deleted.
Version history shows no versions after the restore time
If version history does not show any versions after the restore time, it means the file restore process deleted those versions. This is a known limitation of the OneDrive file restore feature. Your only option is to use the SharePoint site collection recovery method described above, or restore from a backup if your organization uses a third-party backup solution.
Multiple users report lost edits after a shared library restore
When multiple users lose edits, use the SharePoint site collection recovery method. This restores the entire site collection to a point in time, which includes all libraries, lists, and permissions. After the restore, ask users to check their files and redo any edits that were made after the restore point. To prevent this in the future, communicate to users that they should save critical edits and then immediately create a version by using the Save button or Ctrl+S. This forces the version to be recorded before a restore is run.
| Item | Version History Recovery | SharePoint Site Collection Recovery |
|---|---|---|
| Scope | One file at a time | Entire site collection including all libraries |
| Time to complete | Minutes per file | Minutes to hours |
| Preserves recent changes | Yes, if version exists | No, restores to a single point in time |
| Permissions restored | No | Yes |
| Requires admin rights | No | Yes, SharePoint admin or Global admin |
| Best for | Small number of missing files | Large-scale loss of recent edits |
You now know why OneDrive file restore misses recent changes in shared libraries and how to recover those edits using version history, the recycle bin, or site collection recovery. For future restores, set the restore window to at least one hour before the most recent edits you want to keep. Also consider enabling versioning on all shared libraries so you can always revert a single file without affecting the rest of the library.