Skip to content

Instantly share code, notes, and snippets.

View Hiestaa's full-sized avatar

Romain G Hiestaa

View GitHub Profile
@Hiestaa
Hiestaa / mongorestore-per-collection.sh
Last active June 21, 2017 20:15
mongorestore too many open files error workaround with per collection restore
#!/bin/bash
if [ $# -eq 0 ]; then
echo "usage: `basename $0` pathToDb [dbName]"
exit 1
fi
pathToDb=$1
if [ $# -eq 1 ]; then