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.0.tar.gz (29.5 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.0-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.0.tar.gz
Algorithm Hash digest
SHA256 dcf269dc357fdaf2a18c9313b7f6c0dcad34ee681f290da81d3c74fb72af48a3
MD5 ce84b7ee2b8b2b02f8418df159dfca05
BLAKE2b-256 41fcce90c2c8f1f1c498a533fa4a0cb7b74bcddfbf08ca08feea7c347ee0e512

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for databudgie-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 298aebcaef994c2e9fa136dfa0a761d02e839d17d3ad361812edc61d00795278
MD5 2e37ee004c64612709c016215a4db14e
BLAKE2b-256 c03ff2ccd4992b0c00cdd6e44c24c11474f024e4faeb2e257dc57c2e112b2721

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