• Stars
    star
    134
  • Rank 270,967 (Top 6 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

backup data for mongodb for Nodejs

mongodb-backup

NPM version Linux Status Windows Status Dependency Status Coveralls

Backup for mongodb

Look at mongodb-backup-cli for command line usage, similar to mongodump

Look at mongodb-restore for restore data

Installation

Install through NPM

npm install mongodb-backup

or

git clone git://github.com/hex7c0/mongodb-backup.git

[email protected] has been pulled out, so versions >= 1.3.0 and <= 1.4.1 are deprecated

API

inside nodejs project

var backup = require('mongodb-backup');

backup({
  uri: 'uri', // mongodb://<dbuser>:<dbpassword>@<dbdomain>.mongolab.com:<dbport>/<dbdatabase>
  root: __dirname
});

backup(options)

options

  • uri - String URI for MongoDb connection (default "required")
  • root- String Path where save data (default "required")
  • [parser] - String | Function Data parser (bson, json) or custom (default "bson")
  • [collections] - Array Select which collections save (default "disabled")
  • [callback] - Function Callback when done (default "disabled")
  • [stream]- Object Send .tar file to Node stream (default "disabled")
  • [tar] - String Pack files into a .tar file (default "disabled")
  • [query] - Object Query that optionally limits the documents included (default "{}")
  • [numCursors] - Number Set number of cursor for parallelCollectionScan without query (default "disabled")
  • [logger] - String Path where save a .log file (default "disabled")
  • [metadata] - Boolean Save metadata of collections as Index, ecc (default "false")
  • [options] - Object MongoDb options (default)

Examples

Take a look at my examples

License Apache2

More Repositories

1

express-sitemap

sitemap and robots for Expressjs
JavaScript
68
star
2

mongodb-restore

restore data from mongodb-backup for Nodejs
JavaScript
53
star
3

mongodb-backup-cli

mongodb-backup cli for Nodejs
JavaScript
16
star
4

gmailToSlack

send unread emails to slack channel with google app-scripts
JavaScript
8
star
5

monitode

resource monitor for Nodejs
JavaScript
8
star
6

cookie-encryption

encrypt/decrypt data to store on cookie with memoization for Nodejs
JavaScript
7
star
7

arc4

rc4 stream cipher for Nodejs
JavaScript
7
star
8

transfer-rate

calculate transfer-rate of request/response for Nodejs
JavaScript
6
star
9

EncryptoPy

encrypt / decrypt your file with pure Python3
Python
6
star
10

mongodb-restore-cli

mongodb-restore cli for Nodejs
JavaScript
6
star
11

nodejs-cipher-performance

Benchmarks for node `crypto.getCiphers()` or just a wrapper for cipher function in Nodejs
JavaScript
6
star
12

top-vhost

top-down virtual host for Nodejs
JavaScript
5
star
13

nodejs-hash-performance

benchmarks for node `crypto.getHashes()` or just a wrapper for hash function in Nodejs
JavaScript
4
star
14

task-manager

task-manager for cluster or single application for Nodejs
JavaScript
3
star
15

basic-authentication

http basic authentication for Nodejs
JavaScript
3
star
16

mod_autoindex

generates directory indexes, automatically, with memoization, for Nodejs
JavaScript
3
star
17

grunt-endline

add newline at end of file for Nodejs
JavaScript
3
star
18

browser-language

grab browser language and store on cookie for Nodejs
JavaScript
2
star
19

json-decrypt

decrypt your json configuration with password
JavaScript
2
star
20

mkdir-recursive

make/remove directories recursively for Nodejs
JavaScript
2
star
21

tickle

request counter for Nodejs
JavaScript
2
star
22

safer-regex

detect possibly exponential-time regular expressions (with cli support)
JavaScript
2
star
23

scaffoldinpy

project builder from git repository in Python3
Python
1
star
24

logger-request

http request logger middleware for Nodejs
JavaScript
1
star
25

setheaders

boilerplate for res.setHeader, protection from being overridden for Nodejs
JavaScript
1
star
26

startline

stream readline with starting point for Nodejs
JavaScript
1
star
27

logger-request-cli

parser for logger request for Nodejs
JavaScript
1
star
28

supergiovane

website for searching through history of npm modules
JavaScript
1
star
29

remove_date

remove Date header from http(s) response for Nodejs
JavaScript
1
star
30

grunt-safer-regex

detect possibly exponential-time regular expressions
JavaScript
1
star
31

filename

tiny module for get script filename for Nodejs
JavaScript
1
star
32

autokey

autokey stream cipher for Nodejs
JavaScript
1
star