I am working on mean.JS application, need to provide data backup and restore functionality for user I've come across [mongodb-backup][1]
but i've issue in using this, backup file is storing in a folder where code is executed i.e __dirname
is there any alternative option for storing back-up file in any other location
var backup = require('mongodb-backup');
backup({
uri: 'uri',
root: __dirname,
// write files into this dir
callback: function(err) {
if (err) {
console.error(err);
} else {
console.log('finish');
}
}
});
via Srinivas
No comments:
Post a Comment