Merge pull request #80 from jkaninda/docs
docs: update deployment example
This commit is contained in:
@@ -193,7 +193,6 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- bkup
|
|
||||||
- backup --storage ssh --disable-compression
|
- backup --storage ssh --disable-compression
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ You may use one of several pre-defined schedules in place of a cron expression.
|
|||||||
| @hourly | Run once an hour, beginning of hour | 0 * * * * |
|
| @hourly | Run once an hour, beginning of hour | 0 * * * * |
|
||||||
|
|
||||||
### Intervals
|
### Intervals
|
||||||
You may also schedule a job to execute at fixed intervals, starting at the time it's added or cron is run. This is supported by formatting the cron spec like this:
|
You may also schedule backup task at fixed intervals, starting at the time it's added or cron is run. This is supported by formatting the cron spec like this:
|
||||||
|
|
||||||
@every <duration>
|
@every <duration>
|
||||||
where "duration" is a string accepted by time.
|
where "duration" is a string accepted by time.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
pg-bkup:
|
pg-bkup:
|
||||||
image: jkaninda/pg-bkup
|
image: jkaninda/pg-bkup
|
||||||
container_name: pg-bkup
|
container_name: pg-bkup
|
||||||
command: backup --dbname database_name --mode scheduled --period "0 1 * * *"
|
command: backup --dbname database_name
|
||||||
volumes:
|
volumes:
|
||||||
- ./backup:/backup
|
- ./backup:/backup
|
||||||
environment:
|
environment:
|
||||||
@@ -11,3 +11,4 @@ services:
|
|||||||
- DB_HOST=postgress
|
- DB_HOST=postgress
|
||||||
- DB_USERNAME=userName
|
- DB_USERNAME=userName
|
||||||
- DB_PASSWORD=${DB_PASSWORD}
|
- DB_PASSWORD=${DB_PASSWORD}
|
||||||
|
- BACKUP_CRON_EXPRESSION=0 1 * * *
|
||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
# for a list of available releases.
|
# for a list of available releases.
|
||||||
image: jkaninda/pg-bkup
|
image: jkaninda/pg-bkup
|
||||||
container_name: pg-bkup
|
container_name: pg-bkup
|
||||||
command: backup --storage s3 -d my-database --mode scheduled --period "0 1 * * *"
|
command: backup --storage s3 -d my-database
|
||||||
environment:
|
environment:
|
||||||
- DB_PORT=5432
|
- DB_PORT=5432
|
||||||
- DB_HOST=postgres
|
- DB_HOST=postgres
|
||||||
@@ -21,6 +21,7 @@ services:
|
|||||||
- AWS_SECRET_KEY=xxxxx
|
- AWS_SECRET_KEY=xxxxx
|
||||||
## In case you are using S3 alternative such as Minio and your Minio instance is not secured, you change it to true
|
## In case you are using S3 alternative such as Minio and your Minio instance is not secured, you change it to true
|
||||||
- AWS_DISABLE_SSL="false"
|
- AWS_DISABLE_SSL="false"
|
||||||
|
- BACKUP_CRON_EXPRESSION=0 1 * * *
|
||||||
# pg-bkup container must be connected to the same network with your database
|
# pg-bkup container must be connected to the same network with your database
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
|
|||||||
Reference in New Issue
Block a user