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.

How I would recover the recent deleted files from amazon ec2 ubuntu server.For example The all "tar" files are removed unfortunately in amazon ec2 + ubuntu 11.04 instance.

The removed files should be retrieved.

How it is supposed to do?

share|improve this question

2 Answers 2

You can use extundelete to recover your files if your file system is ext3 or ext4.

share|improve this answer

You can try using Photorec - it has had success recovering data from EBS volumes before (although, since EBS is a 'block' device, any undelete tool should work). It is more of a 'guided' process as opposed to a single command (more GUI like, if you will). It looks for known file headers to match against deleted files - the list of supported file types can be found here. (I believe the package name is [testdisk][3])

The Ubuntu page on data recovery may also be a worthwhile read.

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.