rclone 链接google drive的文件夹与Jabref的同步使用

本文介绍了如何使用rclone链接Google Drive的特定文件夹,特别是针对Backup and Sync 'Computers' 文件夹。通过设置root_folder_id,可以限制rclone访问特定的文件夹,但会失去访问其他文件夹的能力。解决方法是配置多个rclone实例。同时,文章还展示了如何在Jabref中使用rclone的代码示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在设置rclone config的过程中,一般建议root_folder_id为空,但这样设置下来,只能读取/my-drive下面的内容,而与电脑同步的文件夹Computers下的内容就无法读取.可以使用下面命令,查看可以读取文件下的内容:

rclone ls googledrive:

因此按照[3]的建议,将root_folde_id设置一下即可:

However you can set this to restrict rclone to a specific folder or to access the Backup and Sync "Computers" Folders/Files. In order to do this you will have to find the Folder ID of the folder you wish rclone to display. This will be the last segment of the URL when you open the folder. So if the folder/computer backup you want to show looks like https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh in the browser, then you use 1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh as the root_folder_id in the config.

但这样设置后,就只能读取Computers下的内容了,但其它文件夹的内容无法读取,暂时能想到的解决方法就是多配置几个rclone了.敲打


运行jabref的code:

#!/bin/sh

echo "run jabref"
/usr/share/java/jre1.8.0_161/bin/java -jar JabRef-4.1.jar
echo "jabref quit success"

上传jabref的code:

#!/bin/sh

echo "Sync Up"
export HTTP_PROXY=socks5://127.0.0.1:1080
rclone sync /home/lsss/lsss/Papers googledrive:Papers

下载jabref的code:

#!/bin/sh

echo "Sync download"
export HTTP_PROXY=socks5://127.0.0.1:1080
rclone sync googledrive:Papers /home/lsss/lsss/Papers

运行jabref的code:

#!/bin/sh

echo "run jabref"
/usr/share/java/jre1.8.0_171/bin/java -jar JabRef-4.1.jar
echo "jabref quit success"



[1] https://rclone.org/drive/ 

[2] rclone 教程 可管理 gdrive,dropbox,onedrive商业版 http://xiaofd.win/rclone.html

[3] drive: Access Backup and Sync "Computers" Folders/Files https://github.com/ncw/rclone/issues/1773

[4] Failed to configure token https://forum.rclone.org/t/failed-to-configure-token/5301

[5] Linux bash终端设置代理(proxy)访问 http://aiezu.com/article/linux_bash_set_proxy.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值