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:

# 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.7.4.tar.gz (28.7 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.7.4-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.7.4.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.16 Linux/5.15.0-1035-azure

File hashes

Hashes for databudgie-2.7.4.tar.gz
Algorithm Hash digest
SHA256 a08008408452b68ba52835d96dabbf87ed28d69feccb9e7ca750d26b11de84c9
MD5 bc70d3e4b66a3e555ea62f946d96d3e8
BLAKE2b-256 03295316e14d970eca25dc3cd69fb8c2edea31546ced9cc5ea2639f7dcdb6e59

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06bf3552efb5fc36cd2eaa59839a8da9f1af8377672f5f718b323210bbe884dd
MD5 2ff5ad589d3b8132b4c483640b941685
BLAKE2b-256 337ceac8ba2026727786233497f226592396d45eb9e03108af8c21af2aade4b1

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