1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-05-17 13:14:38 +00:00

update versions in readme [skip ci]

This commit is contained in:
Elliott Shugerman 2021-06-20 14:22:25 -04:00
parent c291eb465f
commit d74f3b27c6

View File

@ -5,13 +5,13 @@ This project provides Docker images to periodically back up a PostgreSQL databas
## Backup ## Backup
```yaml ```yaml
postgres: postgres:
image: postgres:11 image: postgres:13
environment: environment:
POSTGRES_USER: user POSTGRES_USER: user
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
pg_backup_s3: pg_backup_s3:
image: eeshugerman/postgres-backup-s3:11 image: eeshugerman/postgres-backup-s3:13
environment: environment:
SCHEDULE: '@weekly' SCHEDULE: '@weekly'
PASSPHRASE: passphrase PASSPHRASE: passphrase
@ -25,7 +25,7 @@ pg_backup_s3:
POSTGRES_USER: user POSTGRES_USER: user
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
``` ```
- Images are tagged by the major PostgreSQL version they support: `9`, `10`, `11`, or `12`. - Images are tagged by the major PostgreSQL version they support: `9`, `10`, `11`, `12`, or `13`.
- The `SCHEDULE` variable determines backup frequency. See go-cron schedules documentation [here](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules). - The `SCHEDULE` variable determines backup frequency. See go-cron schedules documentation [here](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules).
- If `PASSPHRASE` is provided, the backup will be encrypted using GPG. - If `PASSPHRASE` is provided, the backup will be encrypted using GPG.
- Run `docker exec <container name> sh backup.sh` to trigger a backup ad-hoc - Run `docker exec <container name> sh backup.sh` to trigger a backup ad-hoc