Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.