Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Automating

Ashwin Gopi Krishna ashwingkrish

🤖
Automating
View GitHub Profile
@ashwingkrish
ashwingkrish / mongo-download.md
Created Apr 5, 2019
Downloading MongoDB data onto your local machine
View mongo-download.md

Downloading mongodb data

Execute the following commands to download the database onto your machine.

First, on the server execute this command: mongodump -d <db-name> -o <db-name>

Download the folder called and the on your machine, execute the following command

mongorestore -d //

@ashwingkrish
ashwingkrish / migrate-django.md
Created Apr 3, 2019
Django - Shifting from SQLite3 to PostGres
View migrate-django.md

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then: