Giter VIP home page Giter VIP logo

gclone's Introduction

gclone

English 简体中文

A modified version of the rclone Provide dynamic replacement SA file support for google drive operation. All other functions are the same as rclone.

This version includes PR#38 in original gclone filepath end with slash /

// View version information
gclone version

Instructions

1. service_account_file_path Configuration

Add service_account_file_path Configuration. For dynamic replacement service_account_file(SA file). Replaces SA file when rateLimitExceeded error occurs to bypass 750GB limit.

rclone.conf example:

[gc]
type = drive  
scope = drive  
service_account_file = /root/accounts/1.json  
service_account_file_path = /root/accounts/  <------- (Important) Add this in configuration 
root_folder_id = root  

/root/accounts/ Folder contains multiple access and edit permissions service account file (x.json).
Once set up, when gclone sees rateLimitExceeded error, it will automatically change SA file, seamlessly bypassing the limit in real-time.

2. Use gc-local.bat provided for ease of use and operation of gclone. (Windows only)

Read the instructions here written by me.
You can find the original repository written by me.

Features

1. Supports Folder ID

If the original rclone is across team disks or shared folders, multiple configuration drive letters are required for operation.

gclone supports Folder ID operations

gclone copy gc:{folder_id1} gc:{folder_id2}  --drive-server-side-across-configs

folder_id1 can be: common directory, shared directory, team drive.

gclone copy gc:{folder_id1} gc:{folder_id2}/media/  --drive-server-side-across-configs
gclone copy gc:{shared_folder_id} gc:{folder_id2}  --drive-server-side-across-configs

2. Direct Copy with file ID

id operations: common directory, shared directory, team drive.

gclone copy gc:{shared_file_id} gc:{folder_id2}  --drive-server-side-across-configs

Supports {Folder ID} proceeding filepaths

gclone copy gc:{shared_file_id} gc:{Team Drive ID}/media/  --drive-server-side-across-configs

Code edited

All additional code that makes gclone run is encased. Most of the code edited is in drive.go inside \backend\drive

//------------------------------------------------------------
// 如果存在 ServiceAccountFilePath,调用 changeSvc, 重试
// If ServiceAccountFilePath exists, call changeSvc and try again
if(f.opt.ServiceAccountFilePath != ""){
	f.waitChangeSvc.Lock()
	f.changeSvc()
	f.waitChangeSvc.Unlock()
	return true, err
}
//------------------------------------------------------------

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.