Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.10
RUN apk add --no-cache postgresql-client dcron tini
FROM alpine:latest
RUN apk add --no-cache postgresql-client dcron tini tzdata
ENV PGHOST="db" \
PGUSER="postgres" \
PGDATABASE="postgres" \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ The example above is for a `docker-compose.yml` file where you have to use `$$`
Also note `%j` in the [date format](http://man7.org/linux/man-pages/man1/date.1.html) expression which means *day of year*.
So you will have backup files for a year until the first one is overwritten.

For a full example of using the `custom` format please have a look at [example.yml](./example.yml).
For a full example of using the `custom` format please have a look at [example.yml](./example.yml).

To change the timezone, use the TZ environment, example: TZ=America/Sao_Paulo
## Restore
`docker exec` into the container and use [`pg_restore`](https://www.postgresql.org/docs/current/app-pgrestore.html) or [`psql`](https://www.postgresql.org/docs/current/app-psql.html).

Expand Down