Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djmaze/docker-postgres-backup
Docker image for creating an encrypted postgres backup and storing it remotely
https://github.com/djmaze/docker-postgres-backup
backup docker postgresql
Last synced: 27 days ago
JSON representation
Docker image for creating an encrypted postgres backup and storing it remotely
- Host: GitHub
- URL: https://github.com/djmaze/docker-postgres-backup
- Owner: djmaze
- Created: 2022-01-20T17:26:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T14:55:03.000Z (6 months ago)
- Last Synced: 2024-12-08T20:41:20.656Z (about 1 month ago)
- Topics: backup, docker, postgresql
- Language: Shell
- Homepage: https://hub.docker.com/r/decentralize/postgres-backup
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Postgres backup
[![Build Status](https://ci.strahlungsfrei.de/api/badges/djmaze/docker-postgres-backup/status.svg)](https://ci.strahlungsfrei.de/djmaze/docker-postgres-backup)
[![Docker Stars](https://img.shields.io/docker/stars/decentralize/postgres-backup.svg)](https://hub.docker.com/r/decentralize/postgres-backup/) [![Docker Pulls](https://img.shields.io/docker/pulls/decentralize/postgres-backup.svg)](https://hub.docker.com/r/decentralize/postgres-backup/)This Docker image allows making a full SQL backup of a postgres database and store it [Age](https://github.com/FiloSottile/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.
## Usage
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](docker-compose.yml) for an example which stores the backup using S3 on a local minio server.
You can also supply a [Healthchecks](https://healthchecks.io/) ping URL in order to be notified of backup success and failure.