MetaExodus simplifies the process of migrating databases from Metabase to a local PostgreSQL instance. By utilizing the API, it seamlessly transfers your tables and data, making it a valuable tool for developers seeking a reliable local copy of production data for testing and development.
MetaExodus is a powerful tool designed to facilitate the seamless migration of data from Metabase to a local PostgreSQL database. Utilizing the Metabase API, this tool enables developers to effortlessly copy entire databases, which is invaluable for local testing and development purposes.
To begin, clone the repository and set up the project:
git clone https://github.com/larrasket/metaexodus
cd metaexodus
yarn install
Next, configure the environment by copying and editing the .env file with your PostgreSQL and Metabase credentials. This setup includes settings such as local database details and the Metabase API access information:
DB_LOCAL_HOST=localhost
DB_LOCAL_PORT=5432
DB_LOCAL_NAME=my_local_db
DB_LOCAL_USERNAME=postgres
DB_LOCAL_PASSWORD=your_password
METABASE_BASE_URL=https://your-metabase.com
METABASE_DATABASE_ID=1
DB_REMOTE_USERNAME=your_metabase_email
DB_REMOTE_PASSWORD=your_metabase_password
Once configured, run the migration with:
yarn start
Watch as your data is efficiently copied over.
MetaExodus also welcomes contributions. Developers can run tests and ensure code quality with the following commands:
# Run tests
yarn test
# Check code style
yarn lint
# Fix code style issues
yarn lint:fix
MetaExodus aims to streamline the data migration process from Metabase to local PostgreSQL environments, making it a vital tool for developers requiring access to production data in a local setting.
No comments yet.
Sign in to be the first to comment.