A CLI tool used to manage Postgres data migrations from beginning to end, for a single database or a fleet, leveraging pglogical replication.
Project description
Pgbelt
PgBelt is a CLI tool used to manage Postgres data migrations from beginning to end, for a single database or a fleet, leveraging pglogical replication.
It was built to assist in migrating data between postgres databases with as little application downtime as possible. It works in databases running different versions of postgres and makes it easy to run many migrations in parallel during a single downtime.
:exclamation: This is very important |
---|
As with all Data Migration tasks, there is a risk of data loss. Please ensure you have backed up your data before attempting any migrations |
Installation
Install From PyPi
It is recommended to install pgbelt inside a virtual environment:
You must also have:
- Postgres Client Tools (pg_dump, pg_restore). Mac:
brew install libpq
. Ubuntu:sudo apt-get install postgresql-client
Install pgbelt locally:
pip3 install pgbelt
Quickstart with Pgbelt
See this doc!
Contributing
We welcome contributions! See this doc on how to do so, including setting up your local development environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pgbelt-0.6.0.tar.gz
.
File metadata
- Download URL: pgbelt-0.6.0.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5876647eb2501576aaa161ec8c80b2ab010ae3cd7ac9d22f36cccc2188b90adc |
|
MD5 | b3f416680190eadcc2a36409e034fbbf |
|
BLAKE2b-256 | 8f552b86e9ea0e281df451cfa241b32c32b9f92da1642845e00af5e0a1dd6c86 |
File details
Details for the file pgbelt-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: pgbelt-0.6.0-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ea1cc4459d4955bc6b183d07090fd9661ae981cf678d6860a06372ae5021d8a |
|
MD5 | 87418d5560218b5cb3128e7d876057f2 |
|
BLAKE2b-256 | 261989a9fb770e3e8c4d5666da3a99bd155550057c26ae9427a3f13e0f19663f |