docs: update deployment example

This commit is contained in:
Jonas Kaninda
2024-09-28 21:28:27 +02:00
parent 09f6b5609a
commit 4a1b8106b9
4 changed files with 6 additions and 5 deletions

View File

@@ -193,7 +193,6 @@ spec:
command:
- /bin/sh
- -c
- bkup
- backup --storage ssh --disable-compression
resources:
limits:

View File

@@ -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 * * * * |
### 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>
where "duration" is a string accepted by time.

View File

@@ -3,11 +3,12 @@ services:
pg-bkup:
image: jkaninda/pg-bkup
container_name: pg-bkup
command: backup --dbname database_name --mode scheduled --period "0 1 * * *"
command: backup --dbname database_name
volumes:
- ./backup:/backup
environment:
- DB_PORT=5432
- DB_HOST=postgress
- DB_USERNAME=userName
- DB_PASSWORD=${DB_PASSWORD}
- DB_PASSWORD=${DB_PASSWORD}
- BACKUP_CRON_EXPRESSION=0 1 * * *

View File

@@ -6,7 +6,7 @@ services:
# for a list of available releases.
image: jkaninda/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:
- DB_PORT=5432
- DB_HOST=postgres
@@ -21,6 +21,7 @@ services:
- 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
- AWS_DISABLE_SSL="false"
- BACKUP_CRON_EXPRESSION=0 1 * * *
# pg-bkup container must be connected to the same network with your database
networks:
- web