0

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!

7
  • 8
    You restore your website from the backup you did. Amazon might be able to help also.
    – Ramhound
    Commented 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
    Commented 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
    Commented Jan 28, 2014 at 21:34
  • First, try creating /Users/ec2-user and then copying the files back.
    – terdon
    Commented Jan 28, 2014 at 21:38
  • 2
    Follow the same procedures you used to create the site originally
    – Ramhound
    Commented Jan 28, 2014 at 21:51

1 Answer 1

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
  • 1
    This. Make a new server and try not to break this one so carelessly.
    – Xyon
    Commented Jan 29, 2014 at 12:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .