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.19.0.tar.gz (54.7 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.19.0-py3-none-any.whl (69.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgbelt-0.19.0.tar.gz
Algorithm Hash digest
SHA256 6e3b210f75b6b84fe4d84d5512b4d75528930c267c674ad3eca6ceed2120897b
MD5 1a2aec4ec6e4e9897f0d4659a2839f9d
BLAKE2b-256 e88b910ab2bc0a36d44d4a2947499024a6be4e20a9d194624a764fa22eccd497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgbelt-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 69.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.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed8baae63f869ba17aaf0bb6c5da0c7556a7d0f5a58dc48a0539db55d5d4954d
MD5 6ae2529056f5fc8099605db3513f1e08
BLAKE2b-256 35bd3dde29b643d12ab01477f81ff572e1f44a094769489cce94b80c31f6566a

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