Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any kind way (and chance) to recover deleted files on a samba share?

We're using Ubuntu Server 10.04 and a user accidentally deleted all his files. He used (I don't think it's useful anyway) Windows 7 to access the share and delete files.

ps I'll try to be clearer: no backup has been done and I'd just need any kind of deleted file recovery working tool on Ubuntu (like easyrecovery pro & co. for windows)

share|improve this question
    
Did you check the recycle bin on the Windows 7 box? –  jftuga Mar 31 '11 at 15:30
    
Sadly it's empty :( –  Pitto Mar 31 '11 at 16:01
    
You can set up recycle bins for Samba shares use the VFS module - this answer gives some good details about doing so. –  Andrew Apr 11 '11 at 23:22

2 Answers 2

up vote 0 down vote accepted

There is a possibility, and a way, depending on the filesystem used to store the files. Here is how one person was able to recover files from an ext3 filesystem: http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html

Of course, if you have backups, that would be preferable. You DO have backups right? If not...now might be a great time to start, while the motivation is fresh in your mind.

Checkout BackupPC, Bacula, or just plain tar.

share|improve this answer
1  
I'm just the luckiest guy around... I've found a working backup (thank god). –  Pitto Apr 4 '11 at 9:55

You're pretty much stuck with recovering from backup unless you can get it back from the server side somehow (filesystem tricks, etc). That's pretty unlikely, though, as the physical location on disk where the files were stored have probably already been overwritten by other server activity. Windows only puts things in the recycle bin when deleting from local volumes. Items on network shares are just straight-up deleted.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.