使用 gclone 实现多网盘备份
名称 | 内容 |
---|---|
RCLONE_CONFIG |
Rclone 配置 |
GCLONE_CONFIG |
Gclone 配置 |
GCLONE_SA_DLURL |
service_account 文件下载地址 |
GCLONE_PATCH |
同步目录 |
使用 rclone 生成配置文件
[A]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"XXX"}
team_drive = XXX
service_account_file = /home/runner/accounts/XXXX.json
service_account_file_path = /home/runner/accounts/
[B]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"XXX"}
service_account 文件压缩包的直链下载地址,建议上传到 dropbox 后生成下载地址
同步目录 source:sourcepath dest:destpath
A:{folde_id1} B:{folde_id2}