How to Migrate from MongoDB to PostgreSQL
Skippr is the easiest way to migrate from MongoDB to PostgreSQL and get fully cleansed and modeled data in one run command.
Source: MongoDB. Destination: PostgreSQL.
Sample config
yaml
skippr:
workspace: mongodb_to_postgres
pipelines:
mongodb_to_postgres:
data_source: data_sources.source
data_sink: data_sinks.warehouse
data_sources:
source:
Mongodb:
connection_string: "mongodb://user:pass@host:27017"
database: mydb
collection: users
data_sinks:
warehouse:
Postgres:
host: localhost
port: 5432
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
database: analytics
schema: publicEnvironment
bash
export POSTGRES_HOST="localhost"
export POSTGRES_USER="myuser"
export POSTGRES_PASSWORD="mypassword"Source connector: mongodb. Destination connector: postgres-warehouse.
See Quick start.
