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.2.tar.gz (29.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.2-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.2.tar.gz
Algorithm Hash digest
SHA256 1ca7bc8e34a771eeb716f3af1ef0587c3cc69587cb284ea8b3b62f230f29895a
MD5 d6ccd19f174cc15448b128c2a84892ad
BLAKE2b-256 db6705e159a012c1588459eae74c42ff34c1df7f371de6a4907640c6249168e6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 543de93f404f27febb35ed6f3421af25142cfec81f3cbe950855623a683671ff
MD5 864537d26cb4ecb3faaa0398271cda23
BLAKE2b-256 61e7d0b6da53e90b5c6ad3f41fc3214647f61e7578d7cf8ea64272e0daa10cc6

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