> For the complete documentation index, see [llms.txt](https://aws-postgresql-docs.beliciarodriguez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aws-postgresql-docs.beliciarodriguez.com/backup-server/automatic-backups.md).

# Overview

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](https://medium.com/better-programming/how-to-provision-a-cheap-postgresql-database-in-aws-ec2-9984ff3ddaea)). 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*,&#x20;

{% embed url="<https://medium.com/better-programming/how-to-provision-a-cheap-postgresql-database-in-aws-ec2-9984ff3ddaea>" %}

(2) Better Programming (Medium), *Create Easy Disk Snapshots with AWS Data Lifecycle Manager*,

{% embed url="<https://medium.com/better-programming/easy-disk-snapshots-with-aws-data-lifecycle-manager-9e36bf66019b>" %}
