I was using sudo rm -rf to delete some folders, and accidentally deleted the /Users/ec2-user home directory. I had my EC2 and AWS Route 53 running my site. Now, it just disappeared. I have all the files for my website, but don't know how to get it back up and running well. It just says "No Data Received" if I visit my website. Help!

  • 8
    You restore your website from the backup you did. Amazon might be able to help also.
    – Ramhound
    Jan 28, 2014 at 21:27
  • 1
    Two words: Restore. Backup. I don't know of AWS/EC2 keeps snapshots, if they do, rolling back to the last snapshot would do it.
    – Ricky
    Jan 28, 2014 at 21:28
  • I have the files for the website (all the html/css/js). So I just place it right in a new ~/ folder?
    – crownusa
    Jan 28, 2014 at 21:34
  • First, try creating /Users/ec2-user and then copying the files back.
    – terdon
    Jan 28, 2014 at 21:38
  • 2
    Follow the same procedures you used to create the site originally
    – Ramhound
    Jan 28, 2014 at 21:51

1 Answer 1


If you have taken an AMI of your instance or an EBS snapshot, you can launch a new instance from it. Otherwise, if you have all your important files somewhere else, you can launch a fresh stock instance and redo the setup you did originally. Then just reassign the Elastic IP of the old instance to the new instance, and terminate the old one.

  • 1
    This. Make a new server and try not to break this one so carelessly.
    – Xyon
    Jan 29, 2014 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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