This image is based on official Postgres image so you can use everything mentioned there.
The image regularly backups the database and uploads the backup into AWS S3 using infrequent storage class. The database is backed up every hour.
How to setup AWS S3 Bucket
Create Bucket in your region e.g. com-yourcompany
Create folder for database backups inside the bucket e.g. dbbackup
Inside dbbackup folder create three other folders with names
month - there will be monthly db backups kept forever
day - there will be daily db backups kept for 64 days
hour - there will be hourly db backups kept for 4 days
The structure looks like
com-yourcompany\dbbackup\month
com-yourcompany\dbbackup\day
com-yourcompany\dbbackup\hour
Setup the expiration of daily and hourly backups
Add Lifecycle rule on the bucket com-yourcompany
Apply the Rule to A prefix: dbbackup/day
Permanently Delete 64 Days after the object's creation date
Create and Activate the rule
Add second Lifecycle rule on the bucket com-yourcompany
Apply the Rule to A prefix: dbbackup/hour
Permanently Delete 4 Days after the object's creation date