Skip to main content

Ergonomic and flexible tool for database backup and restore

Project description

Databudgie

Github Actions Build Coverage Status 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.8.4.tar.gz (30.6 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.8.4-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.8.4.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.17 Linux/5.15.0-1041-azure

File hashes

Hashes for databudgie-2.8.4.tar.gz
Algorithm Hash digest
SHA256 63b5b0717579d578b399c90d9ca416d496d418990ba30364f6cccc0f6c281491
MD5 7d18a9a2d9f1a3271a13d451d379363b
BLAKE2b-256 0f2af9a0a22b17bbca7eac714a7a33b6dba21abee260b97da7cf00ad00318e92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: databudgie-2.8.4-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.17 Linux/5.15.0-1041-azure

File hashes

Hashes for databudgie-2.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6aecb3c0d6e780c8df8b33f5ad1e80a8076839ad5168b763eaf438cd97c763bb
MD5 2f844de7be8a61132a7566ca1ba0f97d
BLAKE2b-256 036d73fe1b0d246fc52320a447d0328c2b57f24b430b3db710db85bb6f31fa27

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