I overwrote a large file with a blank one on a linux server. Can I recover the existing file?
Posted
by user39234
on Server Fault
See other posts from Server Fault
or by user39234
Published on 2010-05-26T15:20:29Z
Indexed on
2010/05/26
15:33 UTC
Read the original article
Hit count: 191
linux
|file-recovery
I came back to my machine, tried saving a file over ssh onto my linux server (CentOS).
It failed.
I wasn't interested in keeping any changes I had made so I closed my editor and reopened the file (over ssh).
The save attempt wiped the file.
I have made loads of changes to it since I last uploaded to revision control.
Seeing as it has just wiped the file I assume the data is still there. It's just a text file (php), is there any way of recovering it?
© Server Fault or respective owner