Skip to main content

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

Latest Commit

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!

Playbook

This playbook gets updated actively. If you have any issues, solutions could be found in this playbook.

Contributing

We welcome contributions! See this doc on how to do so, including setting up your local development environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgbelt-0.7.0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

pgbelt-0.7.0-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file pgbelt-0.7.0.tar.gz.

File metadata

  • Download URL: pgbelt-0.7.0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pgbelt-0.7.0.tar.gz
Algorithm Hash digest
SHA256 b78b6a1382b3bf5516171d43a0023a3e6d3a9b0a2247501f4f51d2e343c36e83
MD5 1d403ed88de8c9813d8f972fb1646aac
BLAKE2b-256 9c421f9e2630e927c3e94bedc6aafadad8215129db47f4e16d1593ba34cceec5

See more details on using hashes here.

File details

Details for the file pgbelt-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: pgbelt-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pgbelt-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 185a041ea2fb71e2f96e994abf1fd192f56029723af74bf1952ee4423f41ebbf
MD5 cc35d3efcb6b8e6e1bae0cd5c61c5a2b
BLAKE2b-256 8f6b7e4b05e52d593ae64785d85ce58b82898e3b2a1c49b9bd3921df7c88a944

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page