Skip to main content

Ergonomic and flexible tool for database backup and restore

Project description

Databudgie

Github Actions Build codecov 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.9.1.tar.gz (268.3 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.9.1-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databudgie-2.9.1.tar.gz
  • Upload date:
  • Size: 268.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for databudgie-2.9.1.tar.gz
Algorithm Hash digest
SHA256 394f33f4795d6c2c8e9df693453f15bd80daaaef56c1f3c5b74f4126e9c63618
MD5 c7f012efda8badb98e925379a3d080d2
BLAKE2b-256 8d852fbb17ff946fcc07659ca27cc9d9464028c200fc11b178ec4f68528621ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for databudgie-2.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d71ad0db31286c368407a18860d87090d24ccb1aabc059a17de288429eedfae7
MD5 a802bd2ad54ec05823585ec69a9aa44e
BLAKE2b-256 b8536402e7a0132ecc2e393bb0f29e423cca086f573d3c87fbd098c756cde970

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