Page MenuHome

restore-db.sh
No OneTemporary

restore-db.sh

#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 dump/{timestamp, like 2016-07-26-1150}" >&2
exit 1
fi
mongorestore -h localhost:27017 -d eve --maintainInsertionOrder --stopOnError "$1/eve"

File Metadata

Mime Type
text/x-shellscript
Expires
Mon, Aug 17, 7:45 PM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/70/411d2bb7fcdb385106ba86d90345

Event Timeline