Skip to content

evan108108/me2S3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

me2S3

Simple local to S3 sync tool.

Getting Started

Install the module with: npm install me2S3

Documentation

(Coming soon)

Examples

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();

Contributing

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.

Release History

(Nothing yet)

License

Licensed under the MIT license.

About

Nodejs Module that watches a folder and pushes contained files to S3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published