Kumi
828fb667f2
Introduced a new Python script to back up PostgreSQL databases, encrypt the dumps using GPG, and then upload them to MinIO. This solution includes: - `.gitignore` to safeguard against accidentally committing sensitive files. - A clear `LICENSE` and `README.md` for legal clarity and usage documentation. - Sample configuration in `config.dist.yaml` to ease setup. - Defined project dependencies and metadata in `pyproject.toml` for streamlined package management. - Core implementation in `src/postgres_minio_backup` to encapsulate backup logic. This commit sets the foundation for a robust, secure database backup mechanism, facilitating easier disaster recovery and data protection strategies.
18 lines
No EOL
434 B
YAML
18 lines
No EOL
434 B
YAML
postgres_hosts:
|
|
- host: 'postgres_host_1'
|
|
port: '5432'
|
|
user: 'postgres_user_1'
|
|
password: 'postgres_password_1'
|
|
- host: 'postgres_host_2'
|
|
port: '5432'
|
|
user: 'postgres_user_2'
|
|
password: 'postgres_password_2'
|
|
|
|
minio:
|
|
endpoint: 'your_minio_endpoint'
|
|
access_key: 'your_minio_access_key'
|
|
secret_key: 'your_minio_secret_key'
|
|
bucket_name: 'your_minio_bucket_name'
|
|
|
|
gpg:
|
|
recipient: 'recipient@example.com' |