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.1.tar.gz
(29.5 kB
view hashes)
Built Distribution
databudgie-2.8.1-py3-none-any.whl
(35.9 kB
view hashes)
Close
Hashes for databudgie-2.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc0e4583e2d29c843a1e231e1e9f21c0440a4a9633a878f652e71beea6846ba |
|
MD5 | 77b355a1930ed995069375fe2a8b25ea |
|
BLAKE2b-256 | 47cbc6c073f85bd826aa538fec654a5fcf2b5f36c7db65768fe46dd743b69af6 |