washeuteessen / washeuteessen-database

Using a MongoDB for storing the scraped data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository for MongoDB scripts

Pipelines

  • Show duplicates:
  • Delete duplicates:
  • Number of ingredients:

Views

  • DocsPerDomain:
  • UnparsedUrls:

Backup MongoDB

  1. Create Dump of MongoDB

    In terminal of MongoDB Pod:

mongodump --out /data/db
  1. Download Dump

    Log into Openshift at local windows Terminal, then copy the dump folder to local:

oc cp mongo-2-6v94s:/data/db/dump/ ../dump/
  1. Build Docker Image

console to git dir ./Other:

docker build .
  1. Start image

Get name of docker in console

docker container ls
docker run -p 27017:27017 IMAGENAME
  1. Restore dump

Get Name of Docker

docker ps

Restore Dump

docker exec -it NAMEOFDOCKER mongorestore ./dump

About

Using a MongoDB for storing the scraped data


Languages

Language:JavaScript 91.7%Language:Dockerfile 6.0%Language:Batchfile 2.3%