mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-12 06:28:02 +00:00
Merge pull request #26 from x-jokay/fix-markdown-files
Fix markdown issues
This commit is contained in:
@@ -10,11 +10,13 @@ Supports the following Docker architectures: `linux/amd64`, `linux/arm64`, `linu
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Docker:
|
Docker:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -e POSTGRES_HOST=postgres -e POSTGRES_DB=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password prodrigestivill/postgres-backup-local
|
docker run -e POSTGRES_HOST=postgres -e POSTGRES_DB=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password prodrigestivill/postgres-backup-local
|
||||||
```
|
```
|
||||||
|
|
||||||
Docker Compose:
|
Docker Compose:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
@@ -47,10 +49,10 @@ services:
|
|||||||
- BACKUP_KEEP_WEEKS=4
|
- BACKUP_KEEP_WEEKS=4
|
||||||
- BACKUP_KEEP_MONTHS=6
|
- BACKUP_KEEP_MONTHS=6
|
||||||
- HEALTHCHECK_PORT=80
|
- HEALTHCHECK_PORT=80
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
Most variables are the same as in the [official postgres image](https://hub.docker.com/_/postgres/).
|
Most variables are the same as in the [official postgres image](https://hub.docker.com/_/postgres/).
|
||||||
|
|
||||||
| env variable | description |
|
| env variable | description |
|
||||||
@@ -72,6 +74,7 @@ Most variables are the same as in the [official postgres image](https://hub.dock
|
|||||||
| SCHEDULE | [Cron-schedule](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules) specifying the interval between postgres backups. Defaults to `@daily`. |
|
| SCHEDULE | [Cron-schedule](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules) specifying the interval between postgres backups. Defaults to `@daily`. |
|
||||||
|
|
||||||
#### Special Environment Variables
|
#### Special Environment Variables
|
||||||
|
|
||||||
This variables are not intended to be used for normal deployment operations:
|
This variables are not intended to be used for normal deployment operations:
|
||||||
|
|
||||||
| env variable | description |
|
| env variable | description |
|
||||||
@@ -84,7 +87,7 @@ This variables are not intended to be used for normal deployment operations:
|
|||||||
By default this container makes daily backups, but you can start a manual backup by running `/backup.sh`:
|
By default this container makes daily backups, but you can start a manual backup by running `/backup.sh`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -e POSTGRES_HOST=postgres -e POSTGRES_DB=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password prodrigestivill/postgres-backup-local /backup.sh
|
docker run -e POSTGRES_HOST=postgres -e POSTGRES_DB=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password prodrigestivill/postgres-backup-local /backup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Automatic Periodic Backups
|
### Automatic Periodic Backups
|
||||||
|
|||||||
Reference in New Issue
Block a user