I have deleted some of my python scripts about 3 months ago and now I want to recover them, I tried Data Rescue 4 which is told as the best data recovery software but it was unable to find .py extensions, however it found the files which I deleted with .py files together. They told me that there is no support for .py files. So are there someone who tried to recover python script files and had success on Ubuntu, OSX or Windows?
Usually I do a grep on the device file (you need to know some specific text on the files you are looking) and I get the text I want. I just need to cut the needed data.
This usually works well for all non encrypted filesystems, but requires some manual works and to discriminate the last version (vs. many of temporary files created and deleted by editors).
I used it both in Linux and OSX.