Git Product home page Git Product logo

mv2s3's Introduction

mv2s3 上传工具

上传指定文件夹的内容到 s3, 并删除已上传的文件,可以认为是移动本地文件到 s3。

说明 运行的时候,会把指定的目录重命名为新的临时目录,同时以指定目录的原名创建一个空目录; 上传完成后会删除临时目录

安装

npm install -g @tinoq/mv2s3

运行

s3:

mv2s3 -s /src -d a/b/c -i AccessKeyId -k AccessSecretKey -b wyc

minio:

mv2s3 -s /src -d a/b/c -i AccessKeyId -k AccessSecretKey -b wyc -e endpoint -m true

可以通过 crontab 定时运行

查看帮助

mv2s3 -h

Usage: mv2s3 [options]

Options:
  -V, --version            output the version number
  -s, --src <path>         【必要】源路径
  -d, --dest <path>        【必要】目标路径
  -i, --id <string>        【必要】aws_access_key_id
  -k, --key <string>       【必要】aws_secret_access_key
  -b, --bucket <string>    【必要】bucket
  -e, --endpoint <string>  endpoint, eg. http://127.0.0.1:9000
  -m, --minio <boolean>    use minio (default: false)
  -h, --help               output usage information

mv2s3's People

Contributors

456wyc avatar dependabot[bot] avatar

Watchers

 avatar  avatar

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.