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: 178

Filed under:
|

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

Related posts about linux

Related posts about file-recovery

  • mac osX file recovery

    as seen on Super User - Search for 'Super User'
    I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found. Because they were not "deleted" they are not in the… >>> More

  • Mac OS X file recovery

    as seen on Super User - Search for 'Super User'
    I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found. Because they were not "deleted" they are not in the… >>> More

  • help! corrupt file recovery

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    My supervisor computer crashed last night, and I'm trying to help him out. He made an R script but when he tried to open it, it was empty. But for some reason the file is 7.9kb so it should not be empty i think... anyway when i tried to open it, Gedit gave this error: "The file you opened has… >>> More

  • Expectations for NTFS file recovery

    as seen on Super User - Search for 'Super User'
    Yesterday I booted my XP system, and as I looked up a minute later I saw the light blue screen and tail-end of that pre-boot diskcheck Windows sometimes does if it finds an error (or was previously told to run a diskcheck drung the next boot). I didn't worry about it at the moment... But then I… >>> More

  • reclaime like, recovery software

    as seen on Super User - Search for 'Super User'
    I need a recovery software that has the features of reclaime file recovery. Those are, to be able to read image files, to keep folder structure, to be as efficient but to be free. I can't afford reclaime and all free software that i know out there either support folder structure but cannot read an… >>> More