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

在设置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

猜你喜欢

转载自blog.csdn.net/lsxpu/article/details/79838905