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 A Clone
It is recommended to install pgbelt inside a virtual environment if installing by clone:
You must also have:
- poetry
- Postgres Client Tools (pg_dump, pg_restore). Mac:
brew install libpq
. Ubuntu:sudo apt-get install postgresql-client
Install the egg locally:
# create a python virtualenv with python 3.9.11 and activate it (any 3.9.x is ok)
pyenv install 3.9.11
pyenv virtualenv 3.9.11 pgbelt
pyenv activate pgbelt
# Install poetry inside your virtualenv
pip3 install poetry
# clone the repo
git clone git@github.com:Autodesk/pgbelt.git
cd pgbelt
# install pgbelt in your virtualenv (uses poetry)
make install
Quickstart with Pgbelt
See this doc!
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.1.0.tar.gz
.
File metadata
- Download URL: pgbelt-0.1.0.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87dad7239fd0940f66743c3fd6d1a25195cdc94086cf3cd89cda10f6ebff5e1a |
|
MD5 | d1669a7f56547f8b9dce052b7448d43c |
|
BLAKE2b-256 | 977a5f7cbf25d746fe07dd94d45426b684845264165a27f74655b9c8515175cc |
File details
Details for the file pgbelt-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pgbelt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e6272d3da8b27cbe38f594bb21d20d17d5c6b6b6a3a3092360c8c2c0f04490 |
|
MD5 | 04440e60e717eded3826a9cc0bc51c1b |
|
BLAKE2b-256 | 26996b29ca36b73156f61c705f967b78980ae710426d7350d6c6bf6409fcd6d1 |