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.3.tar.gz (30.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.8.3-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.3.tar.gz
Algorithm Hash digest
SHA256 9c168b2d7232106980dddf183ab3d8c2c0bcd541f6be473035474e250e807e75
MD5 d82f2125e252fda0778eb3a034889fd5
BLAKE2b-256 50025871b3d435006e3a76ca341f88a2b4aef6bbbcdfa61530da5e0a4ae3afd4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17ded965f92b5dbccea05776664ce3d9872a430e4efde33e0019c9aa9bee82e6
MD5 d430fda3a5479c4cb50b5da57f57a1e0
BLAKE2b-256 d8a45fa9cf3a4767cbc58951368ef7c427177a901e277e4de0cfac9ac2f69e98

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