This Docker image allows making a full SQL backup of a postgres database and store it Age-encrypted on a remote location supported by rclone.
The backup is encrypted asymmetrically, so you need to supply a public key. The holder of the private key will be able to decrypt the backup.
Create a new keypair using age-keygen
. Store the keyfile in a secure location and run this container with the RECIPIENT
env variable set to the public key.
See docker-compose.yml for an example which stores the backup using S3 on a local minio server.
You can also supply a Healthchecks ping URL in order to be notified of backup success and failure.