Code Monkey home page Code Monkey logo

s3_scripts's Introduction

S3Sync

s3_syncはローカルストレージとaws/s3のバケットの同期ツールです

Installation

set environmental variable

export AWS_ACCESS_KEY_ID=''

export AWS_SECRET_ACCESS_KEY=''

export AWS_END_POINT=''

export AWS_BKUP_DIR=''

Add this line to your application's Gemfile:

gem 's3_sync',                :git => '[email protected]:oguratakayuki/s3_scripts.git', :branch => 'master'

And then execute:

bundle install

Usage

 buncle exec s3_sync copy BUCKET_NAME_COPY_FROM BUCKET_NAME_COPY_TO             # copy s3 bucket

 s3_sync download BUCKET_NAME_TO_DOWNLOAD                                       # download aws/s3 data to localstrage

 s3_sync help [COMMAND]                                                         # Describe available commands or one specific command

 s3_sync interactive                                                            # use interactive interface for upload,download,copy,remove s3 data
 
 s3_sync remove BUCKET_NAME_TO_REMOVE                                           # remove s3 bucket

 s3_sync upload BUCKET_NAME_TO_UPLOAD TIMESTAMP [--nb NEW_BUCKET_NAME_TO_COPY]  # upload localstrage data to s3

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

s3_scripts's People

Contributors

oguratakayuki avatar

Watchers

Hikaru Shinkai avatar

Forkers

hikaru-tsuruta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.