EBS Snapshot Migration: twtech Overview
and Methods EBS Snapshot migration generally
refers to copying EBS snapshots across
AWS regions or accounts. This is often done for disaster recovery, multi-region deployment,
cost optimization,
or compliance. Types
of EBS Snapshot Migration1. Cross-Region Snapshot CopyCopy an EBS snapshot from one AWS Region to
another. Benefits:
- Disaster recovery / backup in a different
region
- Compliance with data residency laws
- Enable creation of volumes in other regions
AWS CLI # bash aws ec2 copy-snapshot \
--source-region us-east-1 \
--source-snapshot-id snap-0123456789abcxxxx \
--destination-region us-east-2 \
--description "Copy to us-east-1"
2. Cross-Account
Snapshot SharingShare snapshots with other AWS accounts by
modifying snapshot permissions. Benefits:
- Centralized backup management
- Sharing data across teams or organizations
- Migrating workloads between accounts
AWS CLI :Make a snapshot public or share with a specific
account: # bash aws ec2 modify-snapshot-attribute \
--snapshot-id snap-0123456789abcdxxx \
--attribute createVolumePermission \
--operation-type add \
--user-ids 123456789xxx
Note: twtech cannot share encrypted snapshots directly unless using an
AWS KMS key shared with
the target account. 3. Restore
Snapshot to Volume in Target Region/AccountOnce the snapshot is copied/shared, you can
create a new volume from it: # bash aws ec2 create-volume \ --snapshot-id snap-abcdef1234567xxx \
--availability-zone us-east-2a \
--volume-type gp3
How twech Handles Encryption for Snapshots
- twtech can
copy encrypted snapshots across regions, but the KMS key must be accessible in the
destination region.
- For cross-account copies of encrypted
snapshots:
- Share the KMS key with the target account.
- Re-encrypt with a new key during copy if
needed.
twtech-Best Practices
- Tag snapshots with metadata (e.g., source, date, purpose).
- Use automation tools like AWS Data Lifecycle Manager
or AWS Backup.
- Monitor snapshot copy status with CloudWatch
or AWS Config.
- Secure snapshots using encryption and IAM policies.
EBS Snapshots Features
• twtech may move EBS Snapshot to Archive.(storage for snapshots)
• Moving Snapshots to an ”archive” would be 75% cheaper
for twtech to manage (cost efficiency) • It sometimes take
twtech, between 24 up to 72 hours for the EBS Snapshots to be fully restored from the archive. • for safety,
twtech always delete EBS Snapshots into a bin,
so that those deleted snapshots may be restored if need arise. • twtech therefor create rules to retain deleted snapshots
so they may recover them if accidental deleted
• twtech may specify retention period for deleted
snapshots from day-1 up to 1 year.
How twtech recoveres deleted
volume snapshots from bin. Step-by-step: GUI & CLINote: EBS snapshots cannot be recovered once
permanently deleted.
There is no "Recycle Bin"
for snapshots by default ...deletion
is immediate and irreversible,
unless you explicitly enable the AWS Recycle Bin feature before
deletion. twech Enabled AWS Recycle BinWhat is AWS Recycle BinAWS Recycle Bin lets twtech to retain deleted EBS snapshots
for a specified time (retention period), even after they are
deleted.
- twtech must enable a retention rule before
the
deletion happens.
- This Works for any twtech EBS snapshots and AMIs.
- This allows EBS Snapshots go to a "recoverable"
state during the
retention period.
How twtech Recovers Snapshots from Recycle BinIf a snapshot was deleted after a Recycle Bin rule was applied: GUI
- Go
to EC2 Console → Snapshots
- Change the filter to:
State: recoverable
- Select the snapshot you want to restore
- Click Recover Snapshot
Or twtech may use
the: AWS CLI: # bash aws rbin restore-snapshot \
--snapshot-id snap-0abcdef12345xxx
Note: This only
works if the snapshot is within the retention window. If Recycle Bin Was Not Enabled Before
DeletionThere is no way to recover a
permanently deleted snapshot. twtech key options:
- Look for older snapshots or AMIs.
- Check if AWS Backup was used (which has its own
retention).
- Restore from application-level backups (e.g., RDS
snapshots, S3, or database backups).
twtech tips to: Prevent Accidental Deletion- Use Recycle Bin retention
rules for all snapshots.
- Tag critical snapshots with
"DoNotDelete" and enforce IAM policies. - Automate backups with
AWS Backup or Lifecycle Manager.
- Monitor deletions with
CloudTrail logs.
Project: How twtech creates snapshots from EBS
volumes : UI
Create a snapshot for Volume ( EBS-twtech-web-server)
Assign a description for the EBS Snapshot: twtech-web-server-SnapShot
Assign a tag for the snapshots: Name: twtech-web-server-SnapShot-do-not-delete-april-05-2025
Verify that the snapshots has been createdGo to -----> EC2-menu: navigate to
-----> Elastic Bock Store, then
-----> Snapshots
More
details for the snapshot: twtech-web-server-SnapShot-do-not-delete-april-05-2025
How twtech migrates(copy) snapshot to another region( from:
us-east-2 to us-east-1)
Copy snapshots to any destination (region) : us-east-1
Snapshot origin: us-east-2
Snapshot destination: us-east-1
Encrypt snapshot with kms key: aws default key
Assign a tag: Name Copied
snap-of-twtech-web-server from us-east-2 to us-east-1 april-05-2025
Go to us-east-1 (N Virginia) to verify that
twtech-web-server snapshopts were successfully : migrated
from us-east-2 (Ohio)
Yes: successful
Finally, twtech needs to creates an EBS volume from EBS
snapshopts and attached it to an instance in the same AZ.
Create volume
Select the target Availability Zone
(AZ): AZ can be changed
From:
To:
Assign a tag:
Name: twtec-web-server-volume-recreated-migrated-from-us-east-2a
to us-east-2b
Verify that
twtech-web-server- snapshot from us-east-2a has
been use to create a new twtech web-server volume in
us-east-2b. Yes:
successful
The status
of the volume is still Available, and twtech can now attach to an instance in
the same AZ(us-east-2b)
How twtech
protects snapshots from accidental deletion with: aws Recycle Bin AWS Snapshots Tpyes
Types of AWS Snapshots
In AWS, the term "snapshot"
usually refers to backups
of data volumes or machine images, but different
services support various kinds of snapshots. Below are the main types
categorized by service:
1.
EBS Snapshots (Amazon Elastic Block Store)
- Type:
Point-in-time backup of EBS volumes
- Storage: Stored in
Amazon S3 (not user-visible)
- Features:
- Incremental
- Can be encrypted
- Can be copied across regions/accounts
- Supports Recycle Bin (optional)
Use case: Backup EC2 instance storage, DR, cloning
environments.
2.
EC2 AMI Snapshots
- Type: Image-based
backup that includes EBS
snapshot(s) and instance metadata
- Components:
- EBS volume snapshots (root + data volumes)
- Launch config (instance type, networking, permissions, etc.)
Use case: Launch pre-configured EC2 instances from
saved images.
3.
RDS Snapshots (Relational Database Service)
- Types:
- Automated
Snapshots: Managed by AWS (retention based on backup window)
- Manual
Snapshots: User-created, retained until explicitly deleted
Use case: Point-in-time recovery of RDS databases.
4.
Redshift Snapshots
- Types:
- Automated
Snapshots
- Manual
Snapshots
- Can be copied across regions and accounts.
Use case: Backup and restore Redshift data
warehouses.
5.
Amazon FSx Snapshots
Supports snapshots for:
- Amazon
FSx for Windows File Server
- Amazon
FSx for Lustre
- Amazon
FSx for NetApp ONTAP
Use case: File-level recovery or full file system
restore.
6.
Amazon EFS (Elastic File System) Backup (via AWS Backup)
- Not snapshots per se, but AWS Backup lets twtech to take scheduled backups (which
act like snapshots).
- twtech can create restore
points and recover data to a new file system.
Use case:
Versioned backup of NFS file systems.
7. AWS Backup
Snapshots
- A centralized backup service that supports:
- EBS,
RDS, DynamoDB, EFS, FSx, EC2, Storage Gateway
- These backups are policy-driven
and stored in a centralized Backup
Vault.
Use case:
Centralized, policy-managed backups across services. Summary Table
Service
|
Snapshot
Type
|
Incremental
|
Manual/Auto
|
Cross-Region
|
EBS
|
Volume Snapshots
|
✅ Yes
|
✅ Both
|
✅ Yes
|
EC2
|
AMI (uses EBS)
|
✅ Yes
|
✅ Manual
|
✅ Yes
|
RDS
|
DB Snapshots
|
✅ Yes
|
✅ Both
|
✅ Yes
|
Redshift
|
Cluster Snapshots
|
✅ Yes
|
✅ Both
|
✅ Yes
|
FSx
|
File System
|
✅ Yes
|
✅ Both
|
✅ Some types
|
EFS
|
Backup via AWS Backup
|
❌ (not traditional snapshot)
|
✅ Both
|
✅ Yes
|
AWS Backup
|
Multi-service
|
Depends on service
|
✅ Both
|
✅ Yes
|
Project:
How twtech
protects snapshots retaintion rule from accidental deletion with:
aws Recycle Bin
Create
retention rule
Select the resource type for the retaintion rule: EBS
Snapshots
Add tag:
Name: twtech-web-server-SnapShot-do-not-delete-april-05-2025 Retention
period: 365 day (1year) Rule lock settings
Lock
the retention rule to prevent it from being accidentally or maliciously updated
or deleted.
Lock setting: unlock means the rule can be later deleted if no longer needed. Tags
A
tag is a label that you assigned to an AWS resource. Each tag consists of a key
and an optional value. twtech can use tags to search and filter your resources or
track your AWS costs. This is the tag for twtech retention rule.
Before deleting
snapshots, verify the resources in the Recycle
Bin (
twtech-recycle-bin) Go ahead
and delete ebs snapshots: to verify if the snapshots are
store in the recycle bin for later recovery (after accidental
deletion)
Note:
If the
snapshot is a standard storage tier, it can be move to an archive before deleting.
Also, Once snapshots is archived, it will take 24 up to 72 hours to restore the snapshots. Deleting the snapashops:
Go back
and verify in the Recycle bin ( twtech-recycle-bin) that
the snapshots were move to the bin successesfull and could be recovered if they
were accidentally deleted. Successful, the EBS snapshot
was deleted and stored in the aws recycle bin: How
twtech recovers deleted snapshots from the aws recycle bin. Confirm
recovery:
To: NB:
Once the
retention rule is deleted, the snapshot will have no place to be stored: Confirm
deletion of retention rule:
At this
point that there is no aws retention rules ( recycle bin) if
the snapshots are deleted, that will be permanent
Again, Without
a retention rule created before deletion of snapshot, that is catastrophic. Permanent deletion. |
No comments:
Post a Comment