0

Iam new to AWS and iam tryin to find a good way for backing up my EC2 Instance.

I would like to run an application on my ec2 isntance with a database. Exactly, my application and also my database would run on the ec2 instance. My question is now whether it is useful at this point to use AWS EBS and to make snapshots of the instance storage for a backup or should I configure the database on a seperate instance with multi availability zones enabled ?

How to backup a ec2 instance in general?

do I have to use a redundant database on an external server? or is it possible to make snapshots and put them on ebs?

Khan
  • 1,418
  • 1
  • 25
  • 49
  • There are a number of problems with your question, including the fact that it's probably not on-topic for Stack Overflow. The [DevOps Stack Exchange](https://devops.stackexchange.com) site is potentially more appropriate. Additionally, you should never put anything important on the instance store volumes (they are ephemeral), and your database shouldn't be on the same instance as the application. – Michael - sqlbot Oct 08 '17 at 20:58
  • okay. I know that application and database should be seperate. But would this be a possible backup solution? – Khan Oct 08 '17 at 21:57
  • Are you really using [instance storage](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) or are you actually using EBS volumes? – Michael - sqlbot Oct 08 '17 at 22:26
  • i have tried both. In the instance menu i selected 32GB SSD instance storage and for a different instance i selected EBS only – Khan Oct 16 '17 at 09:41

1 Answers1

1

There are too many problem in your post, but I saw what you want are:
- Backup your application instance
- Backup your database
If you use EC2 with EBS, it is not support multiAZ. AWS is already with many out-of-the-box functions, the easiest way is using very basic aws pattern:
- 1 EC2 instance for running your application. setup point-in-time snapshot backup. This
- 1 RDS with enabled multiAZ. Setup backup retention period (Default is daily). This
If you calculate well, the pricing is not too much than you run instance with self manage.

Bui Anh Tuan
  • 910
  • 6
  • 12