AWS Elastic Block Storage Contd..
- Installing necessary softwares on Windows 10 and above Refer Here
Backup of Volume => Snapshot
- In AWS first backup is full backup and backups from there are incremental.
- What happens when we delete the latest backup
- What will happen if we delete the first backup
- When we want to delete the snapshot, AWS will check if the snapshot to be deleted is referenced by some other snapshots
- if yes the contents of snapshots will be copied to snapshot refering this. In this case there is no data loss
- if no then the snapshot will be deleted. In this case there is data loss.
- Now Generally organizations, configure automated backups periodically (once every day/hour/week). In these situations we can also configure to delete the older snapshots as it doesnot cause data loss.
-
Lets create a snapshot
- From snapshot we can
- create an ebs volume
- in different az
- in differnt region: This can be achieved by copy snapshot to other region and create a ebs volume from there
- Create an AMI (Amazon Machine Image):
- AMI is snapshot plus metadata
- create an ebs volume
- Exercise:
- Create an ubuntu instance.
- Install docker and add ubuntu user to docker group
- Stop the ec2 instance
- Create a snapshot from EBS root volume.
- Now delete the ec2 instance
- Create a ec2 AMI with docker preinstalled from the snapshot we created.
