Skip to main content

Ergonomic and flexible tool for database backup and restore

Project description

Databudgie

Github Actions Build codecov Documentation Status

Databudgie is a CLI & library for database performing targeted backup and restore of database tables or arbitrary queries against database tables.

Usage

A minimal config file might look like:

# databudgie.yml or config.databudgie.yml
backup:
  url: postgresql://postgres:postgres@localhost:5432/postgres
  tables:
    - name: public.product
      query: "select * from {table} where store_id > 4"
      location: s3://my-s3-bucket/databudgie/public.product
restore:
  url: postgresql://postgres:postgres@localhost:5432/postgres
  tables:
    - name: public.product
      location: s3://my-s3-bucket/databudgie/public.product

With that config in place, backing up the defined tables (using the specified config) is as simple as databudgie backup; and restore databudgie restore.

Installation

pip install databudgie

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

databudgie-2.9.0.tar.gz (268.1 kB view details)

Uploaded Source

Built Distribution

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

databudgie-2.9.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file databudgie-2.9.0.tar.gz.

File metadata

  • Download URL: databudgie-2.9.0.tar.gz
  • Upload date:
  • Size: 268.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for databudgie-2.9.0.tar.gz
Algorithm Hash digest
SHA256 83fca0fed00b96722bc826e815785697ee5ca0e87d2224b2a31a16eba99669c3
MD5 3a25fea7d5e4707125c70e809829dc68
BLAKE2b-256 19bfa2e906a8a4471a3ff86f826d93e95f1656eb57047196ef1ba448b42d0838

See more details on using hashes here.

File details

Details for the file databudgie-2.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for databudgie-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31ab2ca2efd4c011dd42f54ef8cc8a07ead0ec9b54d418558c5cf419d5fcdeca
MD5 388beb99af7ca4f8dbc2c900b671eb04
BLAKE2b-256 36b824077c6010709c8e31f1411886bade58bc2263b1efcc44d42fab985541d2

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