Scripts and tools for migrating data between different databases. This repository currently includes a migration script for MongoDB to PostgreSQL, with plans to support more database migrations in the future.
- Easy configuration using a YAML file
- Error handling during the migration process
- Flexible and extensible to support multiple database types
| Source Database | Target Database | Script Reference |
|---|---|---|
| MongoDB | PostgreSQL | MongoDB to PostgreSQL Migration |
- Python 3.x
- pymongo
- psycopg2
- pyyaml
- Clone the repository:
git clone https://github.com/yourusername/databases-migrations.git cd databases-migrations - Install the required packages:
pip install -r requirements.txt
- Configure the migration script as per the instructions in the respective migration guide.
- Configure the migration script as per the instructions in the respective migration guide.
- Run the migration script using the appropriate command. Example :
cd mongo_to_postgres_migration python mongo_to_postgres_migration.py - Verify the migration by checking the target database.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.