До основного вмісту

← До всіх статей

I saved over the wrong version of a file

Ця стаття поки що доступна лише англійською мовою.

Saving over a file is different from deleting it.

The current file still exists, but the contents you wanted may have been replaced. The safest recovery path is therefore to look for a previous version or backup copy before doing anything else.

The most important rule is:

Stop editing the file until you have checked its version history and backups.

Was the file stored in OneDrive or SharePoint?

If the file was stored in OneDrive or SharePoint, check Version history first.

Microsoft states that OneDrive and SharePoint version history can show and restore older versions of stored files. This works with many file types, including Microsoft 365 documents, PDFs, CAD files, photos, and videos. [R1]

In OneDrive on the web:

  1. Select the file.
  2. Open Version history.
  3. Choose the older version you want.
  4. Select Restore. [R1]

If the OneDrive sync app is installed, you can also right-click the file in File Explorer and choose Version history. [R1]

Restoring an older version does not destroy the current one: Microsoft states that the version you restore becomes current, while the previously current version remains in the version list. [R1]

Is it a Word, Excel, or PowerPoint file?

For Microsoft 365 files stored in OneDrive or SharePoint, Office can expose the same version history directly inside the application.

Open the file and look for Version History. You can open an earlier version in a separate window, inspect it, and restore it if it contains the content you need. [R2]

This is particularly useful when AutoSave recorded unwanted edits. Microsoft specifically recommends Version History when AutoSave saved changes that you did not intend to keep. [R3]

Preview the earlier version before restoring it whenever possible.

Was the file stored only on this PC?

If the file was local and File History had already been enabled, Windows may have an older copy.

Go to the folder containing the file, right-click the file or folder, and choose Restore previous versions. Windows lists earlier versions available through File History. [R4]

You can open or preview an older version before restoring it.

If the current file may still contain useful work, use Restore to... and copy the older version to another location. Microsoft warns that restoring directly replaces the current version and that this replacement cannot be undone. [R4]

File History only helps if a suitable backup existed before the unwanted overwrite.

Can AutoRecover help?

Sometimes.

Office AutoRecover can preserve versions while you are working and can help recover unsaved work or changes lost when a file was closed unexpectedly. Microsoft provides recovery options under File → Info → Manage Document / Workbook / Presentation in supported Office versions. [R5]

However, AutoRecover is not a general historical backup. If you deliberately saved over a local file and no recoverable Office version remains, AutoRecover may have nothing useful to restore.

What if there is no version history or backup?

If the file was stored only locally and no File History, application recovery copy, cloud version, or other backup exists, recovery becomes much less certain.

The old contents may already have been replaced by newer data. Unlike an ordinary deleted file, there may be no separate deleted item for Windows to restore.

Do not repeatedly save new versions of the same file while investigating. If the file is important, first preserve the current copy under a different name or on another drive before trying further recovery methods.

What should I do now?

  1. Stop editing the affected file.
  2. Check OneDrive or SharePoint Version history if the file was synced.
  3. For Office files, inspect Version History and available AutoRecover versions.
  4. Check File History / Restore previous versions for local files.
  5. Preserve the current file separately before restoring an older version.
  6. Open the recovered version and confirm that the missing content is actually present.

A successful restore means recovering the wanted contents, not merely producing another file with the same name.


Джерела

  1. Restore a previous version of a file stored in OneDrive — Microsoft Support (2026-09-20)

    “you can see and restore older versions of your files”

    https://support.microsoft.com/en-us/onedrive/restore-a-previous-version-of-a-file-stored-in-onedrive

  2. View previous versions of Office files — Microsoft Support (2026-09-20)

    “you can go back to a previous version of file”

    https://support.microsoft.com/en-us/office/collab-files/view-previous-versions-of-office-files

  3. What is AutoSave? — Microsoft Support (2026-09-20)

    “You can restore a previous version of the file using Version History.”

    https://support.microsoft.com/en-us/office/collab-files/what-is-autosave

  4. Backup and restore with File History — Microsoft Support (2026-09-20)

    “restore a file or folder to a previous state”

    https://support.microsoft.com/en-us/windows/experience/backup-recovery/backup-and-restore-with-file-history

  5. Recover an earlier version of an Office file — Microsoft Support (2026-09-20)

    “If the AutoRecover option is turned on, you can automatically save versions of your file while you're working on it.”

    https://support.microsoft.com/en-us/office/collab-files/recover-an-earlier-version-of-an-office-file