How to Use OneDrive Restore Without Rolling Back Good Changes
🔍 WiseChecker

How to Use OneDrive Restore Without Rolling Back Good Changes

If a ransomware attack, accidental mass deletion, or file corruption has hit your OneDrive, the built-in restore feature can roll back your entire library to a point in time. However, the restore tool is all-or-nothing: it reverts every file and folder in your OneDrive to the state they were in at the selected time. This means any good changes — new documents, edits, or files uploaded after that point — will also be removed. This article explains how to use OneDrive Restore selectively by first isolating the files you want to keep, then running the restore, and finally merging the saved changes back in. You will learn a method that avoids losing productive work while still cleaning up damage.

Key Takeaways: How to Protect New Files During a OneDrive Restore

  • OneDrive Restore (admin center or user portal): Reverts all files in your OneDrive to a specific time — it does not allow selective file skipping.
  • Move good files to a separate folder outside OneDrive: Physically relocating recent or valuable files before the restore prevents them from being overwritten.
  • Copy files back after restore completes: Re-import the saved files into OneDrive to merge good changes without conflict.

ADVERTISEMENT

Why OneDrive Restore Reverts Everything

OneDrive Restore works by comparing the current state of your OneDrive against a snapshot taken at a selected time. It then deletes any file that was added or changed after that snapshot and restores any file that was deleted or changed before it. The process is database-level: it does not inspect individual file metadata or ask which files to keep. This design exists for speed and reliability — scanning millions of files for user input would be slow and error-prone during a crisis. However, it means that any file created or modified after the restore point will be removed unless you take action beforehand.

Steps to Preserve Good Changes Before Restoring

The following method uses a three-phase approach: identify the good files, move them out of OneDrive, run the restore, and then bring the files back. This works for both the user-level restore at onedrive.com and the admin-level restore in the Microsoft 365 admin center.

  1. Identify the files you want to keep
    Open your OneDrive folder in File Explorer. Sort by Date modified descending to see the most recent changes. Also check the OneDrive recycle bin for files that were accidentally deleted and that you want to keep — restore them to your OneDrive first. Make a list or select the files and folders you have added or edited after the restore point you plan to use.
  2. Move those files to a safe location outside OneDrive
    Cut the selected files and folders from your OneDrive folder and paste them into a folder on your local drive that is not synced with OneDrive — for example, C:\Temp\OneDriveBackup. Do not copy; cutting ensures the files are removed from OneDrive. If you copy, the original files remain in OneDrive and will still be affected by the restore.
  3. Run the OneDrive Restore
    Go to onedrive.com and sign in. Click the Settings gear icon in the top-right corner, then select Restore your OneDrive. Alternatively, if you are an admin, go to the Microsoft 365 admin center > Users > Active users, select the affected user, click OneDrive tab, and choose Restore OneDrive. Select a restore point from the timeline — choose the time just before the damage occurred. Click Restore. Wait for the process to finish. This may take minutes to hours depending on the number of files.
  4. Verify the restored state
    After the restore completes, open your OneDrive folder in File Explorer. Check that the damaged or missing files are now present and that the files you moved out are gone. Do not panic — this is expected. Confirm that the restored files are correct.
  5. Copy the saved files back into OneDrive
    Open your backup folder (C:\Temp\OneDriveBackup). Select all the files and folders there. Press Ctrl+C to copy them. Navigate to your OneDrive folder and press Ctrl+V to paste them. The files will upload and sync to OneDrive. If any file already exists in the restored OneDrive with the same name, you will be prompted to Replace the file in the destination or Skip this file. Choose Replace only if you are certain the version from the backup is newer or better.
  6. Check for conflicts
    After the sync completes, look for files with names like filename (computer name's conflicted copy). These appear when the same file was edited in both the backup and the restored version. Open each conflicted copy, compare the content, and decide which version to keep. Delete the unwanted copy.

ADVERTISEMENT

What Happens If You Run Restore Without Moving Files

If you skip the step of moving good files out, the restore will delete or revert every file that was created or modified after the selected restore point. For example, if you set the restore point to 24 hours ago, any file you created or edited in the last 24 hours will be removed. This includes new documents, email attachments saved to OneDrive, and edits to existing files. The files are not sent to the recycle bin — they are permanently removed from the version history. The only way to recover them after a restore is to use the OneDrive recycle bin, but the recycle bin only holds files deleted within the last 30 days for most users. If the restore point is older than 30 days, the files are gone.

If You Accidentally Run the Restore First

If you already ran the restore and lost good changes, you have two recovery options:

Check the OneDrive Recycle Bin

Go to onedrive.com, scroll to the bottom of the left navigation pane, and click Recycle bin. Look for the missing files. Select them and click Restore. The recycle bin retains files deleted by a restore operation, but only for a limited time — typically 30 days for most users. Act quickly.

Use Version History for Individual Files

If a specific file was overwritten rather than deleted, right-click it in OneDrive File Explorer and select Version history. Look for a version dated after the restore point. Select it and click Restore. This works for Office documents, PDFs, and images saved in OneDrive. Version history is retained for up to 500 versions per file.

OneDrive Restore vs Manual Selective Restore: Key Differences

Item OneDrive Restore (Point-in-Time) Manual Selective Restore (Move + Restore + Copy)
Scope All files in OneDrive Only damaged files you identify
Preserves good changes No — reverts everything to the selected time Yes — good files are moved out and brought back
Time required Fast — one click, automated process Slower — requires manual identification, move, restore, and copy
Risk of losing good data High if good files exist after the restore point Low — good files are physically separated
Best use case Ransomware or mass corruption with no recent good changes Partial damage where recent productive work must be kept

The OneDrive Restore feature is powerful but blunt. By moving your good files to a temporary location before running the restore, you keep all productive work intact. After the restore completes, copying the saved files back merges the best of both states. Always test this process on a small set of files first if you are unfamiliar with the restore interface.

ADVERTISEMENT