I've been using this a bunch to reset my local environment so it seemed useful to actually ship.
Add restore_from_prod_db script #25
Merged
edwardloveall
merged 2 commits from 2025年09月08日 15:24:52 +02:00
el-restore-from-prod into main
edwardloveall
commented 2025年09月04日 21:41:30 +02:00
I've been using this a bunch to reset my local environment so it seemed useful to actually ship.
edwardloveall
added 1 commit 2025年09月04日 21:41:31 +02:00
thetizzo
approved these changes 2025年09月05日 18:15:14 +02:00
thetizzo
left a comment
This looks good. I also thought Heroku had a db:pull type thing in their CLI that did something similar to this without replacing the local db.
This looks good. I also thought Heroku had a db:pull type thing in their CLI that did something similar to this without replacing the local db.
edwardloveall
force-pushed el-restore-from-prod from
2025年09月08日 15:24:38 +02:00
Compare
4205816da6
to 2277908566
edwardloveall
commented 2025年09月08日 15:24:40 +02:00
heroku pg:pull --help
pull Heroku database into local or remote database
Oh yeah, that is cool. I tried it and it works as expected.
I like it, but we've talked internally about moving off heroku (or at least moving the database) specifically because there are database things we can't do there. So I think in this case I like being only tied to a heroku URL, not a whole restore command since this will keep us portable.
```sh
heroku pg:pull --help
pull Heroku database into local or remote database
```
Oh yeah, that is cool. I tried it and it works as expected.
I like it, but we've talked internally about moving off heroku (or at least moving the database) specifically because there are database things we can't do there. So I think in this case I like being only tied to a heroku URL, not a whole restore command since this will keep us portable.
edwardloveall
merged commit 2277908566 into main 2025年09月08日 15:24:52 +02:00
edwardloveall
deleted branch el-restore-from-prod 2025年09月08日 15:24:52 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
bug
Something is not working
contribution welcome
Contributions are very welcome, get started here
duplicate
This issue or pull request already exists
enhancement
New feature
good first issue
Interested in contributing? Get started here.
help wanted
Need some help
invalid
Something is wrong
question
More information is needed
upstream
Related to an upstream repository, already reported there
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
rootable/tomato!25
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "el-restore-from-prod"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?