You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ services:
51
51
# - POSTGRES_PASSWORD_FILE=/run/secrets/db_password <-- alternative for POSTGRES_PASSWORD (to use with docker secrets)
52
52
- POSTGRES_EXTRA_OPTS=-Z1 --schema=public --blobs
53
53
- SCHEDULE=@daily
54
+
- INITIAL_BACKUP=TRUE
54
55
- BACKUP_KEEP_DAYS=7
55
56
- BACKUP_KEEP_WEEKS=4
56
57
- BACKUP_KEEP_MONTHS=6
@@ -93,6 +94,7 @@ Most variables are the same as in the [official postgres image](https://hub.dock
93
94
| POSTGRES_USER | Postgres connection parameter; postgres user to connect with. Required. |
94
95
| POSTGRES_USER_FILE | Alternative to POSTGRES_USER, for usage with docker secrets. |
95
96
| SCHEDULE | [Cron-schedule](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules) specifying the interval between postgres backups. Defaults to `@daily`. |
97
+
| INITIAL_BACKUP | If set to `TRUE` performs an initial backup. Defaults to `FALSE`. |
96
98
| TZ | [POSIX TZ variable](https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html) specifying the timezone used to evaluate SCHEDULE cron (example "Europe/Paris"). |
97
99
| WEBHOOK_URL | URL to be called after an error or after a successful backup (POST with a JSON payload, check `hooks/00-webhook` file for more info). Default disabled. |
98
100
| WEBHOOK_ERROR_URL | URL to be called in case backup fails. Default disabled. |
0 commit comments