EBS Snapshot
EBS SnapshotsΒΆ
- Incremental - only backups changed blocks
- EBS Backups use [[IO]] and you shouldn't run them while your application is handling a lot of traffic
- [[Snapshots]] will be stored in AWS S3 (but you won't directly see them)
- Not necessary to detach volume to do snapshot, but recommended
- Max 100,000 snapshots
- Can copy snapshots across Availability Zone or AWS Region
- Can make Image (EC2 AMIs) from snapshot
- EBS Volume restored by snapshots need to be pre-warmed (using [[fio]] or [[dd]] command to read the entire volume)
- Snapshots can be automated using [[Amazon Data Lifecycle Manager]]
The snapshots can be created by right-clicking on the volume.
When the snapshot is created we can do several operations with it: - Create a new volume from the snapshot - Create Image (EC2 AMIs) from the snapshot
We can also go to the Lifecycle Manger
section and add a new snapshot policy, like we are going to make snapshots for all the volumes that have a tag EBS Demo
every 12 hours and keep the last 7 copies.