Configuring Automatic Backups
Set up backups every
To configure automatic backups using AWS Data Lifecycle Manager,
In the EC2 menu, under "Elastic Block Store", select "Lifecycle Manager"
Select "Create Lifecycle Policy"
In the main (i.e first) section,
Under "Policy type", leave the default: EBS snapshot policy
Under "Select resource type", select "Instance"
Description (Example): Backup PostgreSQL server
Under "Target with these tags", select the tag you created during your Launch Template Setup. EX. PostgreSQL (Key), Database (Value
In "IAM Role" section,
Leave as defaults
In "Policy Schedule 1" section,
Schedule name (Example): Server Daily Backup
Frequency (Example): Daily
Every (Example): 24 hours
Starting at (Example): 9:00 UTC (4 AM EST)
Retention type (Example): Count
Interval (Example): 5
Leave the other sections as their defaults
Select "Create Policy"
Now every resource that has our PostgreSQL tag, including our instance, will be backed up daily at 4AM EST, and we will only keep five of our backups at a time.
Last updated