Skip to content

Instantly share code, notes, and snippets.

View ashwingkrish's full-sized avatar
🤖
Automating

Ashwin Gopi Krishna ashwingkrish

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

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 April 3, 2019 10:37
Django - Shifting from SQLite3 to PostGres

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: