Skip to content

Instantly share code, notes, and snippets.

Patrick Breitenbach pbreit

Block or report user

Report or block pbreit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pbreit
pbreit / mongo-dump-csv.sh
Created Aug 10, 2016 — forked from mderazon/mongo-dump-csv.sh
Export all of Mongodb collections as csv without the need to specify fields
View mongo-dump-csv.sh
OIFS=$IFS;
IFS=",";
# fill in your details here
dbname=DBNAME
user=USERNAME
pass=PASSWORD
host=HOSTNAME:PORT
# first get all collections in the database
You can’t perform that action at this time.