Automate Postgres Database Backup and Upload to S3 In this tutorial we will create a bash script to automate postgres database backup from a docker container and native postgres installation then upload to S3 based storage system.