3.0.0 • Published 6 years ago

opclean v3.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

opclean

Utility for cleaning sharejs oplogs

Instalation

npm install -g opclean

Usage

as a cli-tool

Usage: opclean -u [url] -d [num] -e [collections list]

Options:
  -u, --url       mongodb url                                         [required]
  -d, --days      amount of days to preserve records                [default: 7]
  -e, --excludes  collections to exclude        [default: "auths_ops,ops_auths"]

Examples:
  opclean -u mongodb://localhost:27017/idg -d 3     clean all 3-day old records 
                                                    from all ops-collections (ex
                                                    cept 'auths'-ops) and except 
                                                    last op for all snapshots

as a package

var cleaner = require('opclean');

cleaner('mongodb:/localhost:27017/mydb', 7, ['auths_ops'], function(err, results){
  // ...
});

Note

The tool works with two types oplog collections: livedb - collection_ops, and sharedb - ops_collection.

3.0.0

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago