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:
# 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
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.8.6.tar.gz
(32.6 kB
view hashes)
Built Distribution
databudgie-2.8.6-py3-none-any.whl
(39.5 kB
view hashes)
Close
Hashes for databudgie-2.8.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53beb33637a788e03a1bcb9f43cf82567ce5cba49b1a8e9be1f8b8ae19ff09e3 |
|
MD5 | 01a688c8daddd7829da3d959afaec864 |
|
BLAKE2b-256 | 4d5a46e64d9f06378a63503eb73942e6371f46b633bf67a7b78fa502af7643e8 |