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.5.tar.gz (32.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.8.5-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.8.5.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.18 Linux/6.2.0-1019-azure

File hashes

Hashes for databudgie-2.8.5.tar.gz
Algorithm Hash digest
SHA256 d88a7d63e60f5ee330730519355cfc2265be901b5490dd890a568ca24fea7389
MD5 957ccc3c0f7e80deaeb17e0835dc7654
BLAKE2b-256 1451189277e4e925b8c86f4f753cf43d72fc098d9be796e8c9bde2ed0994d27d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: databudgie-2.8.5-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.18 Linux/6.2.0-1019-azure

File hashes

Hashes for databudgie-2.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 228f914a1085e37e35f9b3db76705227f1ccdc4216be449ca3ff5e1ed1bd1aa2
MD5 1284f9b5cbbb5057d77e88d559711514
BLAKE2b-256 a91c884e926a065c640b736c205fe768436a4bc9d1a4cf4601b532a48de97805

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