Created
May 2, 2015 14:02
-
-
Save fergiemcdowall/dabf0e943de6e02a9f86 to your computer and use it in GitHub Desktop.
replicate from search-index snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var si = require('search-index')({logLevel:false}); | |
var fs = require('fs'); | |
si.replicate(fs.createReadStream('backup1.gz'), function(msg){ | |
console.log('restored'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment