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.5.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.5-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.7.5.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.5.tar.gz
Algorithm Hash digest
SHA256 27703d196bc6c2ac9d3bc1cfd69849b7303307ea3f72ba2dfc0923952c500808
MD5 d242e6088f6b3fa7d3e5f0af179272fd
BLAKE2b-256 40ffdb87e1f5e1b98cfec6a846c4df0d5653c1891fb0e8797cdba29f5b221372

See more details on using hashes here.

File details

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

File metadata

  • Download URL: databudgie-2.7.5-py3-none-any.whl
  • Upload date:
  • Size: 35.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f08bb33617049fc01513fba6bfa9fd2bb1d11f1253a8d05a9f397e5fa239a95
MD5 2df2a1c37b0bfae3dad6487fe4f2fc38
BLAKE2b-256 f8b8ef95e07e51338f370d974285483373ccad2aa9b1c845608a8c26b2159603

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