https://github.com/paulo-amaral/metabase-tips
Metabase scripts
https://github.com/paulo-amaral/metabase-tips
metabase python python3 shelkl shell shell-script shell-scripting
Last synced: 26 days ago
JSON representation
Metabase scripts
- Host: GitHub
- URL: https://github.com/paulo-amaral/metabase-tips
- Owner: paulo-amaral
- Created: 2024-04-29T03:09:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-04T01:18:22.000Z (9 months ago)
- Last Synced: 2025-09-04T03:20:50.633Z (9 months ago)
- Topics: metabase, python, python3, shelkl, shell, shell-script, shell-scripting
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_mb_pwd.py
Awesome Lists containing this project
README
# Metabase tips
## Running localy instance of metabase and postgres outside of docker
#### Dump your db to localhost
1 - Create a new postgresql server in that app(mac uses postgres.app) - https://postgresapp.com or stackbricks(windows) https://stackbricks.app/
2 - Create a database in that server : `create database your_db`
3 - Restore this dump into that db `pg_restore -Ox -d your_db ./your_db.custom ` where your db custom is the latest dump to restore
If you want to run the actual metabase database (with all the questions built already).
Just need to run the metabase executable with environment vars that tell it to use that db
create a database in that server `create database your_metabase_db`
restore this dump into that db `pg_restore -Ox -d your_metabase_db ./your_metabase_db.custom`
I run outside of docker, just using java and use a script like this:
```
#!/bin/sh
export MB_DB_TYPE=postgres
export MB_DB_DBNAME=my_mb_db
export MB_DB_PORT=5432
export MB_DB_USER=username
export MB_DB_PASS=
export MB_DB_HOST=localhost
java -jar ~/Downloads/metabase.jar
#telling metabase to use postgres on localhost:5432 and the db my_mb_db
```