Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
mongodb-restore
Advanced tools
Restore data from mongodb-backup
Look at mongodb-restore-cli
for command line usage, similar to mongorestore
Install through NPM
npm install mongodb-restore
or
git clone git://github.com/hex7c0/mongodb-restore.git
Bson@0.4.11 has been pulled out, so versions >= 1.3.0
and <= 1.4.1
are deprecate
inside nodejs project
var restore = require('mongodb-restore');
restore({
uri: 'uri', // mongodb://<dbuser>:<dbpassword>@<dbdomain>.mongolab.com:<dbport>/<dbdatabase>
root: __dirname + '/dbName'
});
uri
- String URI for MongoDb connection (default "required")root
- String Path where get the backup (default "required")[parser]
- String | Function Data parser (bson, json) or custom (default "bson")[callback]
- Function Callback when done (default "disabled")[stream]
- Object Get .tar
file from Node stream (default "disabled")[tar]
- String Extract files from a .tar file (default "disabled")[logger]
- String Path where save a .log file (default "disabled")[metadata]
- Boolean Set metadata of collections as Index, ecc (default "false")[drop]
- Boolean Drop every collection from the target database before restoring the collection (default "false")[dropCollections]
- Boolean|Array Drop every collection from the target database before restoring if Boolean (similar to drop
option), or selected collections if Array (default "false")[options]
- Object MongoDb options (default)Take a look at my examples
FAQs
restore data from mongodb-backup
The npm package mongodb-restore receives a total of 408 weekly downloads. As such, mongodb-restore popularity was classified as not popular.
We found that mongodb-restore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.