docs: update configuration reference, update kubernetes deployment
This commit is contained in:
@@ -6,7 +6,7 @@ nav_order: 2
|
|||||||
|
|
||||||
# Configuration reference
|
# Configuration reference
|
||||||
|
|
||||||
Backup and restore targets, schedule and retention are configured using environment variables or flags.
|
Backup, restore and migrate targets, schedule and retention are configured using environment variables or flags.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ Backup and restore targets, schedule and retention are configured using environm
|
|||||||
| pg-bkup | bkup | CLI utility |
|
| pg-bkup | bkup | CLI utility |
|
||||||
| backup | | Backup database operation |
|
| backup | | Backup database operation |
|
||||||
| restore | | Restore database operation |
|
| restore | | Restore database operation |
|
||||||
|
| migrate | | Migrate database from one instance to another one |
|
||||||
| --storage | -s | Storage. local or s3 (default: local) |
|
| --storage | -s | Storage. local or s3 (default: local) |
|
||||||
| --file | -f | File name for restoration |
|
| --file | -f | File name for restoration |
|
||||||
| --path | | AWS S3 path without file name. eg: /custom_path or ssh remote path `/home/foo/backup` |
|
| --path | | AWS S3 path without file name. eg: /custom_path or ssh remote path `/home/foo/backup` |
|
||||||
@@ -35,7 +36,7 @@ Backup and restore targets, schedule and retention are configured using environm
|
|||||||
## Environment variables
|
## Environment variables
|
||||||
|
|
||||||
| Name | Requirement | Description |
|
| Name | Requirement | Description |
|
||||||
|-------------------|--------------------------------------------------|------------------------------------------------------|
|
|------------------------|----------------------------------------------------|------------------------------------------------------|
|
||||||
| DB_PORT | Optional, default 5432 | Database port number |
|
| DB_PORT | Optional, default 5432 | Database port number |
|
||||||
| DB_HOST | Required | Database host |
|
| DB_HOST | Required | Database host |
|
||||||
| DB_NAME | Optional if it was provided from the -d flag | Database name |
|
| DB_NAME | Optional if it was provided from the -d flag | Database name |
|
||||||
@@ -49,12 +50,19 @@ Backup and restore targets, schedule and retention are configured using environm
|
|||||||
| AWS_DISABLE_SSL | Optional, required for S3 storage | Disable SSL |
|
| AWS_DISABLE_SSL | Optional, required for S3 storage | Disable SSL |
|
||||||
| FILE_NAME | Optional if it was provided from the --file flag | Database file to restore (extensions: .sql, .sql.gz) |
|
| FILE_NAME | Optional if it was provided from the --file flag | Database file to restore (extensions: .sql, .sql.gz) |
|
||||||
| GPG_PASSPHRASE | Optional, required to encrypt and restore backup | GPG passphrase |
|
| GPG_PASSPHRASE | Optional, required to encrypt and restore backup | GPG passphrase |
|
||||||
|
| BACKUP_CRON_EXPRESSION | Optional if it was provided from the --period flag | Backup cron expression for docker in scheduled mode |
|
||||||
| SSH_HOST_NAME | Optional, required for SSH storage | ssh remote hostname or ip |
|
| SSH_HOST_NAME | Optional, required for SSH storage | ssh remote hostname or ip |
|
||||||
| SSH_USER | Optional, required for SSH storage | ssh remote user |
|
| SSH_USER | Optional, required for SSH storage | ssh remote user |
|
||||||
| SSH_PASSWORD | Optional, required for SSH storage | ssh remote user's password |
|
| SSH_PASSWORD | Optional, required for SSH storage | ssh remote user's password |
|
||||||
| SSH_IDENTIFY_FILE | Optional, required for SSH storage | ssh remote user's private key |
|
| SSH_IDENTIFY_FILE | Optional, required for SSH storage | ssh remote user's private key |
|
||||||
| SSH_PORT | Optional, required for SSH storage | ssh remote server port |
|
| SSH_PORT | Optional, required for SSH storage | ssh remote server port |
|
||||||
| SSH_REMOTE_PATH | Optional, required for SSH storage | ssh remote path (/home/toto/backup) |
|
| SSH_REMOTE_PATH | Optional, required for SSH storage | ssh remote path (/home/toto/backup) |
|
||||||
|
| SOURCE_DB_HOST | Optional, required for database migration | Source database host |
|
||||||
|
| SOURCE_DB_PORT | Optional, required for database migration | Source database port |
|
||||||
|
| SOURCE_DB_NAME | Optional, required for database migration | Source database name |
|
||||||
|
| SOURCE_DB_USERNAME | Optional, required for database migration | Source database username |
|
||||||
|
| SOURCE_DB_PASSWORD | Optional, required for database migration | Source database password |
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
## Run in Scheduled mode
|
## Run in Scheduled mode
|
||||||
|
|||||||
@@ -15,10 +15,7 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- bkup
|
- backup --storage s3
|
||||||
- backup
|
|
||||||
- --storage
|
|
||||||
- s3
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
|
|||||||
Reference in New Issue
Block a user