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.1.tar.gz (27.0 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.1-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.7.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Darwin/21.6.0

File hashes

Hashes for databudgie-2.7.1.tar.gz
Algorithm Hash digest
SHA256 51ff25fe87779710d82b884334bb897b9d55400b2589fc8322bd00b5d271d551
MD5 10c25d2ced0aff6ea6c2be13e620d5c1
BLAKE2b-256 12b7813f307e08d67cda36cc1555d0918ef002a403d8f9bab49e8c38fe8a1abf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: databudgie-2.7.1-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Darwin/21.6.0

File hashes

Hashes for databudgie-2.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18a54c650277bc4588a3a157c470b5d6e3279542e1e9cc566719a2daeab842de
MD5 5bf8ff71732d035410ebd9c8da7e730c
BLAKE2b-256 01858d8488d019e1ecb546b0d1adaaa70ce1d230f3ebeee6aaa025d572e9e75f

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