level-archive
v1.0.0
Published
Cli tool to import/export leveldb into txt file for archiving and transmission
Downloads
4
Maintainers
Readme
level-archive cli
Cli tool to import/export leveldb into txt file for archiving and transmission.
Support read from file/stdin, and write to file/stdout. Which can be piped to/from gzip
Installation
npm install --global level-archive
Usage
Export from leveldb to file:
# export as plain text
export-level-archive ./db ./data/db.txt
# export as compressed binary
export-level-archive ./db | gzip > ./data/db.txt.gz
Import from file to leveldb:
# import from plain text
import-level-archive ./db ./data/db.txt
# import from compressed binary
cat ./data/db.txt.gz | gzip -d | export-level-archive ./db
More details see: example