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.2.tar.gz
(26.7 kB
view hashes)
Built Distribution
databudgie-2.7.2-py3-none-any.whl
(32.8 kB
view hashes)
Close
Hashes for databudgie-2.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982435ca3d401298307b3dfaba11242d4c5bf4b9d175ae6cd5b57565559746df |
|
MD5 | bdf31ccf4fef9a2a7e803a5d017e059a |
|
BLAKE2b-256 | a20e23cc9f3feb503a2991e9529707568c82f1a56be424c9f0e8ef28be8b55b1 |