by whitegrape · 10y ago · 0 comments
Another option (though last time I tried it, it didn't work..) is something like libtrash: http://pages.stern.nyu.edu/~marriaga/software/libtrash/ Deletes become moves and you can really delete when you like.
Practically speaking, if you're quick an 'rm' isn't totally destructive even without backups. There's a good chance your data is still there on the disk, it's just not associated with anything so it could be overridden at any point. Best to mount the disk read only and crawl through the raw bits to find your lost data (I recovered a week's worth of code this way several years ago).
And then you "actual delete" is where the data loss occurs :D
At the very least when you rm important-file.txt instead of importanr-file.txt you have a chance.
That's very simple and powerful, I can't tell why it is still not implemented today.