Giter Site home page Giter Site logo

cosync's Introduction

cosync

快速上传本地文件夹到腾讯云COS

基于官方工具二次开发, 更加方便, 开箱即用!所有配置项都在运行时提示你如何配置, 并且会记录你的配置.

系统要求

  • nodejs
  • JDK (并且已将java.exe添加在系统PATH, 你在命令行执行java命令有结果就说明符合要求)

安装

$ npm install -g cosync

如何使用

例如你现在需要将本地的一个文件夹(c:\abc)上传到腾云讯COS.
将命令行路径切换到对应文件夹(在本例子中式 C:\abc), 然后执行如下指令

$ cosync run

原理

本项目基于腾讯COS同步工具包二次开发, 更加简化了用户操作. 它的同步策略是增量同步.(也就是不会删除云端已有的文件, 只会做覆盖文件操作, 更加安全, 但同时也带来文件冗余问题)
文件比较策略是 : 在本地维护一个已上传文件数据库,每次执行同步操作都会比较文件是否修改(与本地维护的数据库比较, 而不是与云端文件比较), 如果文件被修改就会被上传到腾讯云指定bucket

示例

第一次执行
ScreenShot

到腾讯云查看执行结果
ScreenShot

重复执行能看到已经保存的配置, 不需要重新填写配置, 但是你仍然可以修改某个配置项
ScreenShot

cosync's People

Stargazers

 avatar  avatar  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.