
The short answer: An overwritten file is not the same as a deleted one. When a file is deleted, its contents remain on the drive until something overwrites them. When a file is overwritten, however, the new data is written directly over the old data, leaving recovery software with nothing to find. Your only realistic chance is versioning that was already running beforehand: File History and the Previous Versions tab in Windows, version history in OneDrive, SharePoint or Google Drive, and AutoRecover in Office. If none of these was enabled, a locally overwritten file is usually unrecoverable—and it is better to say so immediately than to waste a week on fruitless scans.
A typical incident takes five seconds. You open last year’s quotation, replace the figures, click Save instead of Save As—and the original version is gone. Or you copy one folder over another folder with the same name, and Windows asks whether it should replace the files in the destination. You click Yes and only then realize that the destination contained more recent work.
Why overwriting is different from deletion
When you delete a file, the file system merely removes the reference to it and marks its space as available. The contents physically remain there until something writes to that space—and this is exactly what undelete tools rely on.
Overwriting works the other way around. The new contents are written to the same blocks that held the old contents, and the original data ceases to exist at that point. It cannot be „found" because no trace of it remains on the drive. Software advertised for recovering deleted files will not help here—it is looking for something entirely different.
There is therefore no point in wasting time scanning the drive. What does make sense is checking mechanisms that may have stored an older version of the file somewhere else, and doing so as soon as possible because most of them have limited retention periods.
Where to look based on where the file was stored
| Where the file was stored | Where to look for a version | Must be enabled beforehand | How far back |
|---|---|---|---|
| Local Windows drive | File History → Previous Versions tab | yes, including a destination drive | depends on backup settings |
| Synced OneDrive folder | Version History in File Explorer or on the web | no (included with the service) | 30 days |
| SharePoint library / Teams | Version History for the item | yes, library versioning | depends on library settings |
| Google Drive | Version history / file activity | no | older versions may not be retained |
| Word, Excel or PowerPoint document | AutoRecover, Manage Document | partially (enabled by default) | most recent automatically saved state |
| Company file server | Volume Shadow Copy Service (VSS) | yes, configured by an administrator | depends on snapshot schedule |
| None of the above | — | — | usually nothing |
Windows: File History and the Previous Versions tab
According to Microsoft’s documentation, File History regularly stores copies of files from libraries (Documents, Pictures, Videos, Music and custom libraries) on an external drive or network location. It can be enabled in Control Panel under System and Security by selecting Save backup copies of your files with File History.
There is a specific procedure for restoring a particular version:
- In File Explorer, open the folder where the file was stored.
- Right-click the folder name and select Restore previous versions. If the folder is in the root of a drive, right-click the drive itself.
- On the Previous Versions tab, select a version of the folder from a time when the file still contained its original contents.
- Preview the contents first: expand Open and select Open in File History.
Now for the most important point—the one that causes people to lose data a second time. Microsoft explicitly warns that the restored file will replace the current version, and this replacement cannot be undone. Therefore, expand Restore and use Restore to… to save it elsewhere. You will then have both versions and can decide what to do next.
There are two important limitations. File History must have been enabled before the incident, and its destination must have been connected. This is why the Previous Versions tab is often empty on an ordinary home computer—it is not a malfunction; nothing was ever backed up. Second, a file stored outside the libraries will not be backed up unless you add its folder to one of them.
OneDrive and SharePoint
Version history is built into OneDrive and SharePoint and, according to the documentation, works with all file types—including PDFs, photos, videos and CAD drawings, not just Office documents.
On the web, sign in, right-click the file and select Version History. Then click the three dots next to the required version and select Restore. If you have the OneDrive sync app installed on your computer, you can do the same directly in File Explorer: right-click the file and select Version History. The selected version becomes the current one, while the previous current version is added to the list as an older version—so nothing is lost.
Check these two points immediately:
- A file’s version history is retained for 30 days. It is not an archive; it is a recovery window.
- For a work or school account, the administrator may disable versioning. If Version History does not appear in the menu, this is not necessarily a user error, and you should ask the administrator.
The same applies to a SharePoint library—and therefore to team files in Teams—with one difference: versions are tracked only if the library is configured to do so. Restoring an older version in SharePoint does not remove the original version; it creates a copy of it and marks that copy as the latest version.
Google Drive
In Google Drive, older forms of a file can be accessed through version history or file activity. The help documentation highlights two important points: version history works differently for native Google Docs, Sheets and Slides files than it does for uploaded files such as PDFs and images, and for older documents only the most recent versions may be retained unless you select Keep forever for a specific version. If you know that you may need to return to a particular state, mark it accordingly straight away.
Office: AutoRecover and older versions
Office documents provide one more layer of protection that is independent of the cloud.
If the application crashed or the power went out: The next time you start the application, the Document Recovery pane opens with automatically recovered files. Select the correct one by its date and time and save it immediately—if you merely close it, you may lose the recovered state.
If you saved the file with unwanted changes: Open it, go to File → Info, and under Manage Document (Manage Workbook in Excel or Manage Presentation in PowerPoint), look for an entry marked (when I closed without saving). In Word, you can compare versions before restoring one by clicking Compare next to Restore.
If you never saved the file: Go to File → Info → Manage Document → Recover Unsaved Documents.
There is an important limit to this layer of protection: AutoRecover safeguards against application crashes and unsaved documents. It does not reliably resolve a situation where „I deliberately saved over the original and closed the file"—in that case, cloud version history is a more promising place to look. On a Mac, backups with Time Machine serve a similar purpose, but they must also have been configured beforehand.
When none of these protections was running
Here is the straightforward answer: a file overwritten on a local drive without any versioning or backup system is usually unrecoverable. No software can change that, and laboratory processing will not help because it is impossible to read something that no longer exists on the storage medium.
What may still be worth trying is finding another copy of the same file that was created independently:
- an email attachment you sent to someone, including messages in your Sent folder,
- a copy on a USB flash drive, external drive or in another folder where the file was copied at some point,
- a PDF export or print version, if one was created,
- temporary application files in the same folder, typically with a name beginning with
~$or the.tmpextension, - an older backup of the entire computer, even if it is several months old.
This is not a job for recovery software but for systematic searching—and it is often more successful than anything else.
When it makes sense to contact us
Calling a specialist makes sense in the following situations:
- synchronization or versioning was running on the drive (OneDrive, SharePoint or a company server with shadow copies), and you need to determine what is still available and how to access it without overwriting that as well;
- you do not know what actually happened—whether the file was overwritten, moved, deleted or corrupted and possibly still repairable;
- the file appears to have been overwritten, but the drive is also behaving strangely (reporting errors or struggling to read)—in that case, the order is reversed: first create a sector-by-sector copy, then begin searching;
- the data loss could bring your business to a halt, and you want the first attempt to be done properly.
Before contacting us, stop using the computer—every additional write reduces the opportunity to find other traces. The data recovery page explains what the individual types of jobs involve, while our transparent price list explains what affects the cost. Contact us or call 775 556 063—our laboratory is in Brno.
How to prevent it from happening again
Overwriting a file is the one type of data loss that can be addressed reliably in advance: something simply needs to retain versions. The minimum setup that makes sense for any company is to keep working files in OneDrive or SharePoint, where versions are retained automatically; enable File History on computers that store local data; and maintain a backup that will survive the loss of the computer itself. Our article about using an external drive for 3-2-1 backups explains how to organize the copies.
Frequently asked questions
I saved over the original file. Can I restore the previous version?
Only if it existed somewhere outside that file—in File History, OneDrive or SharePoint version history, Google Drive, shadow copies on a company server, or Office AutoRecover. Without one of these layers, the original contents have been overwritten and cannot be read.
Why will deleted-file recovery software not help?
Because it searches for data that is still present on the drive but no longer has a reference pointing to it. Overwriting is the opposite situation: the new data was written directly to the same blocks. There is therefore nothing to find, and scanning the drive will achieve nothing.
The Previous Versions tab is empty. Does that mean something is broken?
No. It means that no File History backup exists for that folder. File History must have been enabled beforehand and must have had a destination drive or network location connected—otherwise, there is nothing to display on the tab.
How far back can I restore a OneDrive version?
A file’s version history is retained for 30 days. For a work or school account, the administrator may also disable versioning, so if Version History does not appear in the menu, check with them.
I overwrote the file and immediately turned off the computer. Did that help?
Acting quickly helps with deleted files, not overwritten ones—the contents were already replaced at the moment the file was saved. It only helps in one situation: when you are looking for another trace, such as temporary application files or an older copy elsewhere on the drive. In that case, the fewer additional writes, the better.
Sources
- Microsoft Support: Backup and restore with File History
- Microsoft Support: Restore a previous version of a file stored in OneDrive
- Microsoft Support: Restore a previous version of an item or file in SharePoint
- Microsoft Support: Restore an earlier version of an Office file
- Microsoft Support: Recover Word files and documents
- Microsoft Learn: Volume Shadow Copy Service (VSS)
- Google Drive Help: Check the activity and versions of files