[Tex/LaTex] Restore the accidentally replaced file


My .tex file in TeXMaker was replaced by a blank file when I changed the name of the chapter to another name. Is there any way that I can retrieve the old file back? It has much content in it.

Best Answer

The best would be if you had backups, or if you are using version control. Otherwise if you still have the file open, you could try UNDO (this has saved me once).

However there are still other options. The data might not actually be deleted yet. Someone who knows the low level disk interface might be able to retrieve it if you haven't done much on the disk since then, or there are companies that provide this kind of service. Here is a link that might be useful: