站点图标 谷姐靓号网

用Rclone分享G Suite团队盘中的多季美剧

5/5 - (1 vote)


昨天博主想分想个美剧给朋友,结果发现美剧被归档到了团队盘里面,没法以文件夹的形式直接分享,同时也不方便将朋友拉到团队盘里面!

看来得从团队盘拷贝到个人盘里面分享。但美剧季数多,从S01到S08,这也不好用Rclone去copy 8次(手酸)。

尝试用Rclone的filter功能

rclone copy --include "Suits*/**" jack_sd: jack:ToShare/Suits -vv --drive-server-side-across-configs

将Shared Drive(jack_sd)的特定路径下【以Suits开头的文件夹中的所有资源】全部拷贝到My Drive(jack)的ToShare/Suits下面。

果然可行!如果不放心可给上命令加上--dry-run,让其干跑试下!

跑完可以接着用rclone link生成分享链接:

rclone link jack:ToShare/Suits

jack和jack_sd的配置文件如下:

[jack]
type = drive
scope = drive
token = {"access_token":"some","token_type":"Bearer","refresh_token":"other","expiry":""}
[jack_sd]
type = drive
scope = drive
token = {"access_token":"some","token_type":"Bearer","refresh_token":"other","expiry":""}
team_drive = someid
root_folder_id = someotherid
退出移动版