Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
spacem18447yEvery change to the dev db is saved as a numbered sql script as a part of a patch set. There is a table that says what patch sets have run. then when the app is upgraded on prod any patches are applied by code that runs the needed sql scripts
-
Froot75547yPull out the HDD, run to the server room and attach it to the server! Works every time.
-
Root825997yI wrote a few shell scripts to capture, download, import, and archive a backup. Works well for me.
-
cursee171597y@jAsE syncing dev db with prod is not very wise if your dev db has some buggy data. So maybe that's why @github was curious of the reason behind this.
Especially when he said local dev. -
anitavm20037yThe solution you're looking for is Flyway DB - regardless of how stupid the idea might be 😂
-
github95617y@jAsE @CurseMeSlowly
What to Sync is unclear for me.
sizeof(Production DB) >> sizeof(Local Dev DB)
If he only meant to sync such that to update a subset of rows(or collections) in the local, then it's ok.
Otherwise, sync up entire Prod DB in local may be interesting.
Correct me if I interpreted it wrongly.
How do you quickly sync your local dev database with production database?
question