Re:Show HN: Stellar – Git for PostreSQL and MySQL
by obsession on Friday August 22, 2014 @09:02AM
(#8211892)
I have regularly used this with database that's nearing 1000 megabytes. I don't particularly mind slow snapshotting because my workflow is more about restoring database back to baseline than taking copies.
Please don't use this for production. It is not stable enough and you only end up with lost data.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
by falcolas on Friday August 22, 2014 @09:45AM
(#8212040)
Why not use a binary backup method? Faster to backup and restore.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
by martin_ on Friday August 22, 2014 @04:02PM
(#8213680)
Agreed. I've been successfully using mylvmbackup on 10gb+ databases for a few years now.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
by fud on Sunday August 31, 2014 @06:55PM
(#8250713)
We use our own lvm solution at work, works great, we do something like pgsnap to swap to the snapshot or pgsnap master to work on the master. I'll check this out.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
by obsession on Friday August 22, 2014 @05:47PM
(#8214115)
Interesting, I'll have to take a look.
Re:Show HN: Stellar – Git for PostreSQL and MySQL
by sciurus on Friday August 22, 2014 @05:11PM
(#8213981)
For those curious, on PostgreSQL it executes
CREATE DATABASE "snapshot" WITH TEMPLATE "source";
and on MySQL it loops creates the new database and loops over all the tables running INSERT INTO snapshot.table SELECT * FROM source.table;
https://github.com/fastmonkeys/stellar/blob/master/stellar/o...
I can't imagine this would be kind to a production database (lots of cleanup from copied & deleted tables), and would consume a lot more space than a gripped logical backup of the tables in question.