Overview
Backup the server to ensure your server and data will not be lost in the event of an instance failure
Now that your server is configured and running, we now want our server to be backed up on a regular basis to ensure your server and data will not be lost in the event of an instance failure. We can use AWS Data Lifecycle Manager to regularly back up our master EC2 instance and all of the resources with our PostgreSQL/Database tag.
During backups with this method, the instance will be stopped for a couple of seconds during your designated backup period (1). Recall that when we set up our auto scale group we suspended the "ReplaceUnhealthy" process, so our master instance will not be terminated by this backup. Also, we attached an elastic IP address to our instance, so our public IP address will not change every time we do a backup.
References
(1) Better Programming (Medium), How to Provision a Cheap PostgreSQL Database in AWS EC2,
(2) Better Programming (Medium), Create Easy Disk Snapshots with AWS Data Lifecycle Manager,
Last updated