LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recovering deleted files (https://www.linuxquestions.org/questions/linux-newbie-8/recovering-deleted-files-238529/)

hamish 10-04-2004 03:52 AM

recovering deleted files
 
Hey

probably the right forum for this, as I've just done a Noob mistake.

I have accidentally deleted a big folder of my documents (on my server) which I need.

The foler was "my_documents" and I deleted it by SSHing in and typed "rm -rf my_documents"

(I was actually trying to delete a different folder, but, hey, I'm a moron!)

OK, is htere any way to recover this directory?

I heard there was something in Linux about the difference between "hard" and "soft" links. Could I use this to my advantage? Is it the case the I have just deleted the "link" to the directory, but no actually deleted the files themselves?

Please give me some help, or tell me that I've lost it all. Thanks
Hamish

Boffy 10-04-2004 03:59 AM

Since you did it from the command line you've made things difficult. Try searching LQ for "undelete" to see what others did.

In the meantime here is a comprehensive guide:
http://www.securityhorizon.com/secur.../undelete.html

Boffy

Not now, John! 10-04-2004 05:51 PM

If it was on ext3 file system - there's no way to undelete files.
If it was on ext2 file system there is a way. Go to http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html


All times are GMT -5. The time now is 09:55 PM.