Ergonomic and flexible tool for database backup and restore
Project description
Databudgie
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
databudgie-2.7.1-py3-none-any.whl
(32.8 kB
view hashes)
Close
Hashes for databudgie-2.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a54c650277bc4588a3a157c470b5d6e3279542e1e9cc566719a2daeab842de |
|
MD5 | 5bf8ff71732d035410ebd9c8da7e730c |
|
BLAKE2b-256 | 01858d8488d019e1ecb546b0d1adaaa70ce1d230f3ebeee6aaa025d572e9e75f |