MiguelMedeiros / aws-s3-mirror-folder

Transfer all the files from a specific folder to a AWS S3 Bucket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS S3 Mirror Folder

Author: Miguel Medeiros

This project helps you to transfer all files from a specific folder on your machine to a Bucket on AWS S3.

Installation

Install all the dependencies:

npm install or yarn install

Configure the file: ./config.json

{
  "bucketName": "name-of-your-bucket",
  "accessKeyId": "XXXXXXXXXXXXXXXXXX",
  "secretAccessKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "region": "us-east-1",
  "folder": "images"
}

How to run

...with NPM

npm start

And if you want to sync all files:

npm run sync-all

...with Yarn

yarn start

And if you want to sync all files:

yarn sync-all

About the logs

You can watch all the log information in the file: ./cheese.log

Donation

If you like it, you can pay me a beer! 🍺

Bitcoin: 18kXMmrDtgfeQgVmwfmygTaYLyQuVS4chK

About

Transfer all the files from a specific folder to a AWS S3 Bucket.


Languages

Language:JavaScript 98.2%Language:Batchfile 1.8%