/ansible-postgres-s3-backup

An Ansible role to backup Postgres to S3

Primary LanguagePythonMIT LicenseMIT

Build Status

Ansible Postgres S3 Backup

An Ansible role to backup Postgres to S3.

This role to sets up a cron job that streams a Postgres database dump in S3 using minio. The backup script is able to rotate the backups such that only the last n are kept.

Requirements

Runner

  • ansible
  • boto

Host

It is assumed the host is a Debian based machine.

Configuration

For a list of configuration options, please see the defaults file.

Development

It is possible to test the role using run-tests-in-docker.sh. In order for this to work, docker and docker-compose must be setup on your test machine.