Gclone 一個 Rclone 的魔改版本支持分享轉存突破750G限製

介紹

Gclone是一個基於Rclone的魔改版本,功能與原版Rclone相同,但增加了兩個實用功能;

支持服務端直接轉存他人分享的文件及文件夾
支持突破Google Drive單賬號每日750G限製,基於Google的Service Account服務
GitHub項目:https://github.com/donwa/gclone

Gclone

bash <(wget -qO- https://git.io/gclone.sh)

為了以後使用方便,直接將gclone改名rclone

cp /usr/bin/gclone /usr/bin/rclone

參考:Rclone 常用命令參數:https://sunpma.com/864.html
Gclone 新增操作命令

rclone copy 配置名字:{文件ID} 配置名字:網盤路徑 --drive-server-side-across-configs

說明:{文件ID}可以是分享的單獨文件也可以是文件夾
分享鏈接一般是這樣的:https://drive.google.com/drive/folders/XXXXXX
最後麵的一串字符XXXXXX既是分享ID
關於突破750G需要使用Google的Service Account服務,過程有些複雜,如果沒需求就不用弄了;
需要的話可以自行Google教程,Service Account的100個文件最好保存到本地,方便以後使用;

Fclone

GitHub項目:https://github.com/mawaya/rclone
Fclone是另一個Rclone的修改版,操作與Rclone和Gclone完全相同
在GitHub中選擇需要的Fclone版本,然後在本地解壓得到名為fclone的文件
然後將得到的fclone文件上傳至服務器/usr/bin目錄下
賦予Fclone權限

chmod +x /usr/bin/fclone

使用時命令改為fclone即可;

快速安裝

# 下載程序
wget -P /usr/bin https://objectstorage.ap-seoul-1.oraclecloud.com/n/cnyzzr4k2nzj/b/sunpma/o/fclone

# 將Fclone改名為Rclone
cp /usr/bin/fclone /usr/bin/rclone

# 賦予權限
chmod +x /usr/bin/rclone

安裝過程

如果有Service Account的100個文件的話,就先建立以下目錄,然後上傳文件到accounts目錄下

mkdir /root/AutoRclone
mkdir /root/AutoRclone/accounts

如果沒有Service Account就略過,直接開始下麵的安裝即可;
腳本剛才已經下載過了,現在直接輸入rclone config開始安裝

n) New remote
s) Set configuration password
q) Quit config
n/s/q> n   # 輸入n回車,新建配置
name> GD   # 新建配置的名稱,自行設定
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Dropbox
   \ "dropbox"
 9 / Encrypt/Decrypt a remote
   \ "crypt"
10 / FTP Connection
   \ "ftp"
11 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
12 / Google Drive
   \ "drive"
13 / Google Photos
   \ "google photos"
14 / Hubic
   \ "hubic"
15 / JottaCloud
   \ "jottacloud"
16 / Koofr
   \ "koofr"
17 / Local Disk
   \ "local"
18 / Mega
   \ "mega"
19 / Microsoft Azure Blob Storage
   \ "azureblob"
20 / Microsoft OneDrive
   \ "onedrive"
21 / OpenDrive
   \ "opendrive"
22 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
23 / Pcloud
   \ "pcloud"
24 / Put.io
   \ "putio"
25 / QingCloud Object Storage
   \ "qingstor"
26 / SSH/SFTP Connection
   \ "sftp"
27 / Union merges the contents of several remotes
   \ "union"
28 / Webdav
   \ "webdav"
29 / Yandex Disk
   \ "yandex"
30 / http Connection
   \ "http"
31 / premiumize.me
   \ "premiumizeme"
Storage> 12       # 選擇需要掛載的網盤類型
** See help for drive backend at: https://rclone.org/drive/ **

Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a string value. Press Enter for the default ("").
client_id>        # 默認直接回車,或者輸入自己的OAuth ID
Google Application Client Secret
Setting your own is recommended.
Enter a string value. Press Enter for the default ("").
client_secret>    # 默認直接回車,或者輸入自己的OAuth秘鎖
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / Full access all files, excluding Application Data Folder.
   \ "drive"
 2 / Read-only access to file metadata and file contents.
   \ "drive.readonly"
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ "drive.file"
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \ "drive.appfolder"
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \ "drive.metadata.readonly"
scope> 1 # 選擇1然後回車
ID of the root folder
Leave blank normally.

Fill in to access "Computers" folders (see docs), or for rclone to use
a non root folder as its starting point.

Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.

Enter a string value. Press Enter for the default ("").
root_folder_id>        # 直接回車
Service Account Credentials JSON file path 
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default ("").
service_account_file> # 直接回車,如果使用Service Account就填寫其中一個文件的絕對路徑即可:/root/AutoRclone/accounts/0a5af037763bdab70e3a7094d02ec4bd37f8db94.json
Service Account Credentials JSON file path .

Enter a string value. Press Enter for the default ("").
service_account_file_path> 直接回車,如果使用Service Account就填寫這個路徑:/root/AutoRclone/accounts/
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n                    # 選擇n 不使用高級配置
Remote config
Configure this as a team drive?
y) Yes
n) No (default)
y/n> y                     # 選擇n不加載團隊盤,選擇y加載團隊盤
Fetching team drive list...
Choose a number from below, or type in your own value
 1 / 網盤01
   \ "0AFZFXMn1uKs2Uk9PVA"
 2 / 網盤05
   \ "0AI3nH3Vf8NWIUk9PVA"
 3 / 網盤02
   \ "0ADYACmKjlU3JUk9PVA"
Enter a Team Drive ID> # 選擇你的團隊盤編號
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y       # 選擇y回車
Current remotes:

Name                 Type
====                 ====
網盤01             drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q   # 輸入q回車,保存配置退出

相關說明:

1、VIP會員無限製任意下載,免積分。立即前往開通>>

2、下載積分可通過日常 簽到綁定郵箱 以及 積分兌換 等途徑獲得!

3、本站資源大多存儲在雲盤,如出現鏈接失效請評論反饋,如有密碼,均為:www.ipipn.com。

4、所有站內資源僅供學習交流使用。未經原版權作者許可,禁止用於任何商業環境,否則後果自負。為尊重作者版權,請購買正版作品。

5、站內資源來源於網絡公開發表文件或網友分享,如侵犯您的權益,請聯係管理員處理。

6、本站提供的源碼、模板、軟件工具等其他資源,都不包含技術服務,請大家諒解!

7、源碼、模板等資源會隨著技術、壞境的升級而存在部分問題,還請慎重選擇。

PS.源碼均收集自網絡,如有侵犯閣下權益,請發信件至: admin@ipipn.com .


源站網 » Gclone 一個 Rclone 的魔改版本支持分享轉存突破750G限製

發表評論

讚助本站發展 維持服務器消耗

全站源碼免費下載 立刻讚助