|
You are here |
eradman.com | ||
| | | | |
jinyuz.dev
|
|
| | | | | So, I was trying to reproduce some issues and bugs that only happened in production. I needed an exact copy of the production database and run it locally. Here's how I did it using pg_dump and pg_restore. $ pg_dump -U postgres -Fc -Z 9 -j 8 production.dump -d postgres Here's the breakdown for the arguments: U means username. It's used to connect to your postgres database. In this case, my username is postgres. | |
| | | | |
taylorbrazelton.com
|
|
| | | | | ||
| | | | |
minhajuddin.com
|
|
| | | | | Most web apps have a few small tables which don't change a lot but are read a lot from, tables like settings or plans or products (some apps have less than 1000 products). You can do a quick size chec | |
| | | | |
aayushsahu.com
|
|
| | | Making volume, running container, etc. | ||