Giter Site home page Giter Site logo

gclone's Introduction

gclone

一个rclone的修改版.
为Google Drive操作增加自动切换账户和命令行根目录id操作支持.
其他功能与原版rclone相同.

安装

bash <(wget -qO- https://git.io/gclone.sh)
// 查看版本信息
gclone version

操作说明

1.service_account_file_path配置

添加service_account_file_path配置.用于动态替换service_account_file(sa文件).实现rateLimitExceeded错误时,替换当前用户,绕过750G限制.
rclone.conf文件示例:

[gc]
type = drive  
scope = drive  
service_account_file = /root/accounts/1.json  
service_account_file_path = /root/accounts/  
root_folder_id = root  

其中/root/accounts/文件夹中存放了多个访问和编辑权限相同的service account file(*.json).
配置完成后.只要是rclonegc:进行操作,出现rateLimitExceeded错误时,都会自动更换sa文件,实现无缝绕过限制.

2.命令行根目录id

原版rclone如果跨团队盘或者共享文件夹,需要多个配置盘符用于操作.
gclone支持根目录id操作.共享目录和团队盘应该带--drive-server-side-across-configs

gclone copy gc:{目录1的id} gc:{目录2的id}  --drive-server-side-across-configs

目录id可以是:普通目录,共享目录,团队盘.

支持{目录id}后,跟后续路径

gclone copy gc:{共享目录id} gc:{团队盘id}/media/  --drive-server-side-across-configs

3.直接拷贝单文件id

id操作.共享目录和团队盘应该带--drive-server-side-across-configs

gclone copy gc:{共享文件的id} gc:{目录2的id}  --drive-server-side-across-configs

支持{目录id}后,跟后续路径

gclone copy gc:{共享文件的id} gc:{团队盘id}/media/  --drive-server-side-across-configs

gclone's People

Contributors

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