How to recover former version of document

I was working with a document, transferring it from Word to Libre office. When it asked if I wanted to save as an ODT document, over the document that already existed with that name, I thought I was just replacing the Word document with the ODT.
But in another folder, there was a document with the same name, and it saved over THAT one. Is there any way I can recover the document from the other folder that I did not mean to erase??

If "☑ Always create backup copy" has been enabled
in "Tools → Options → Load/Save → General":

You’ll find the previous version of the last saved version in the "backup" folder of your LibreOffice user profile (path see: "Tools → Options → LibreOffice → Paths → Backups").

Open the relevant "*.bak" with LibreOffice (File → Open) and save it as "*.odt" in a folder of your choice.

Hi, What in case of Always create backup copy was not enabled?

Although the links removed from the answers were spam, the point is valid that @Krunal1 now is engaged in a forensics operation of trying to recover an overwritten file from the disk if the backup was not enabled. I have used GPL 2+ applications TestDisk and PhotoRec for forensic recovery, both presently openly available online and (apparently) still being developed. Recovery of such data is hardly assured; often better to immediately recreate.

Saved me two hours of re-work today. Thanks!

If you run Windows 7 you might be lucky to get the old version. In windows Explorer navigate to the file, right click on it, select Properties, select Previous Version (a Tab in the window). Windows is searching for older versions of the file. If an older version(s) shows up, select it and press the Copy button which allows you to copy the older version in a folder of your choice.

Good Luck

Beauty! It’s mid-2016 and this method found the original version from mid-2015. Thanks! [I was updating a document and hit Save instead of Save As… I still wanted the original intact. Not /exactly/ the same situation as the original poster, but close enough.]

Start MSWord.
Click the Microsoft Office Button, and then click Open.
Locate the folder in which you last saved the missing file.
In the Files of type list, click All Files. The backup file usually has the name “Backup of” followed by the name of the missing file.
Click the backup file, and then click Open.

Otherwise it is necessary to try only this way:
DOC Repair Kit is a comprehensive Microsoft Word DOC repair tool with immense potential and an interface that makes the entire procedure a snap. Based on a lightning-fast proprietary core, the program knows how to repair Word DOC files in situations when other tools appear completely helpless.

For more information: (spam link removed)

If this way didn’t work, try to find the answer here: (spam link removed)

This does not work for me. I was transferring a word document to Libreoffice when it suddenly crashed. How can restore this document? Is there a good free software to restore it?