jonaslu / sider Goto Github PK
View Code? Open in Web Editor NEWAs git for your database(s) - commit, f*ckup, restore
License: MIT License
As git for your database(s) - commit, f*ckup, restore
License: MIT License
Add a way to create a snapshot from a dump file/directory.
Examples :
sider snapshot add mariadb mymariadb ./mydump.sql
sider snapshot add mongodb mymongodb ./mongodump/
Try sider db help list
and it shows the list, but should show the help for the command. Same with snapshot.
sider db list -s (possibly rename the parameter) to include the size of the database files in the listing
Proof:
$ sider snapshot list
┌─────────────────┬─────────────────┬─────────────┬─────────────┬────────────────┐
│ name │ engine │ created │ last used │ dbs │
├─────────────────┼─────────────────┼─────────────┼─────────────┼────────────────┤
│ empty │ redis │ 20 days ago │ 20 days ago │ test-replicate │
├─────────────────┼─────────────────┼─────────────┼─────────────┼────────────────┤
│ empty-postg │ postgres │ 15 days ago │ 15 days ago │ empty-pg │
├─────────────────┼─────────────────┼─────────────┼─────────────┼────────────────┤
│ redis │ scores-sds-prod │ 6 days ago │ 6 days ago │ │
├─────────────────┼─────────────────┼─────────────┼─────────────┼────────────────┤
│ scores-sds-prod │ redis │ 6 days ago │ 6 days ago │ │
├─────────────────┼─────────────────┼─────────────┼─────────────┼────────────────┤
│ scores-sds-test │ redis │ 6 days ago │ 6 days ago │ │
└─────────────────┴─────────────────┴─────────────┴─────────────┴────────────────┘
Thanks for this, great project!
Any way of getting support for MySQL?
Thanks
run sider snapshot empty redis some-name
in one terminal. Don't shut it down.
Switch to another terminal and enter sider snapshot list
.
This will fail since the empty snapshot hasn't written it's spec to disk yet. Write some dummy-data when starting it so sider snapshot list
doesn't fail.
Because getting names right the first time is hard
And don't forget to tab-complete it too
Otherwise a container is started but the program exits
Now it's random, default to alphabetical on the snapshot or db, add a param to pass in on engine, created or last used
https://github.com/jonaslu/sider/blob/master/engines/mariadb.js#L55
Mariadb has moved the mysqladmin binary to
/bin/mariadb-admin
This affects ctrl+c shutdown
Add extended listing so the engine and snapshot config is merged like sider db list -s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.