mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-29 23:08:04 +00:00
Add _FILE Support For User And Databases
This commit is contained in:
@@ -57,12 +57,14 @@ Most variables are the same as in the [official postgres image](https://hub.dock
|
||||
| BACKUP_KEEP_MONTHS | Number of monthly backups to keep before removal. Defaults to `6`. |
|
||||
| HEALTHCHECK_PORT | Port listening for cron-schedule health check. Defaults to `8080`. |
|
||||
| POSTGRES_DB | Comma or space separated list of postgres databases to backup. Required. |
|
||||
| POSTGRES_DB_FILE | Alternative to POSTGRES_DB, for usage with docker secrets. |
|
||||
| POSTGRES_EXTRA_OPTS | Additional options for `pg_dump`. Defaults to `-Z9`. |
|
||||
| POSTGRES_HOST | Postgres connection parameter; postgres host to connect to. Required. |
|
||||
| POSTGRES_PASSWORD | Postgres connection parameter; postgres password to connect with. Required. |
|
||||
| POSTGRES_PASSWORD_FILE | Alternative to POSTGRES_PASSWORD, useful with docker secrets. |
|
||||
| POSTGRES_PASSWORD_FILE | Alternative to POSTGRES_PASSWORD, for usage with docker secrets. |
|
||||
| POSTGRES_PORT | Postgres connection parameter; postgres port to connect to. Defaults to `5432`. |
|
||||
| POSTGRES_USER | Postgres connection parameter; postgres user to connect with. Required. |
|
||||
| POSTGRES_USER_FILE | Alternative to POSTGRES_USER, for usage with docker secrets. |
|
||||
| SCHEDULE | [Cron-schedule](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules) specifying the interval between postgres backups. Defaults to `@daily`. |
|
||||
|
||||
### Manual Backups
|
||||
|
||||
Reference in New Issue
Block a user