Simple local to S3 sync tool.
Install the module with: npm install me2S3
(Coming soon)
var fs = require('fs');
//We are expecting to have a file .passwords with JSON format
//with the key/secret.
var contents = fs.readFileSync(__dirname+'/.passwords', 'utf-8');
var config = JSON.parse(contents);
var client = require('./lib/me2S3').createService({
key: config.key,
secret: config.secret,
bucket: 'me2S3',
watchDir: './tmp/example',
failDir: './tmp/exampleF',
checkInterval: 1000,
s3Path: 'backups',
afterPush: './tmp/done'
});
client.start();
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
Licensed under the MIT license.