Page Menu
Home
Search
Configure Global Search
Log In
Files
F14227624
restore-db.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
319 B
Subscribers
None
restore-db.sh
View Options
#!/bin/bash
if
[
-z
"
$1
"
]
;
then
echo
"Usage:
$0
dump/{timestamp, like 2016-07-26-1150}"
>
&
2
exit
1
fi
echo
"THIS WILL DROP EXISTING CONNECTIONS"
echo
"Press [ENTER] to continue, [CTRL]+[C] to abort."
read
dummy
mongorestore -h localhost:27017 -d eve --drop --maintainInsertionOrder --stopOnError
"
$1
/cloud"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Feb 3, 2:58 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
83/d1/0f89f15ab0f5c764f53efb6e1e16
Attached To
rPS Pillar
Event Timeline
Log In to Comment