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.9.5.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgbelt-0.9.5-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgbelt-0.9.5.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pgbelt-0.9.5.tar.gz
Algorithm Hash digest
SHA256 fbe8c47c4bece46ab410f814f3b61a5b6bd736eb672eea088ac539be9bb763d5
MD5 d184e7192ce6d4cd838d5b034ee27fb8
BLAKE2b-256 aa5a7c09e1a8a6b23fd7484db4340674be02eefcf4ac99bdf83f3f35c2fe4d4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgbelt-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pgbelt-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ee70eb2bbda6019e9199bce23b3628316575a445325aa973204773bdd7076843
MD5 95f641e2d963df30fcf856851aeb06cb
BLAKE2b-256 621610463824287f72b71da32b595ee0a071beadc739a9f07315b084ec189acf

See more details on using hashes here.

Supported by

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