前一篇文章中我绑定了一个谷歌硬盘账户将配置文件命名为googledrive,这一篇我依然是测试控制谷歌硬盘,把我整理出来的管理命令记录在这里;
将本地文件上传到谷歌硬盘命令
rclone copy /home/backup/ googledrive:5yun
注释:googledrive这个是Rclone中配置绑定的谷歌账户对应信息,5yun是谷歌硬盘中的一个文件夹
下载谷歌硬盘文件到本地
rclone sync googledrive:5yun /home/backup/
查看谷歌硬盘文件夹内有哪些文件及大小
rclone ls googledrive:5yun
返回信息:
2017/03/02 19:54:40 Time may be set wrong - time from "www.googleapis.com" is -29m25.707988209s different from this computer
34578 index.html
18754125 Sublime+Text+3.3126x86.zip
27424736 10000setup_hn.exe
1021749 dianxincesu.rar
这四个文件就是刚刚我上传上去的
查看谷歌硬盘文件夹内有哪些文件及大小及上传时间
rclone lsl googledrive:5yun
返回信息:
2017/03/02 20:00:24 Time may be set wrong - time from "www.googleapis.com" is -28m59.931732464s different from this computer
34578 2017-03-02 19:45:03.071000000 index.html
18754125 2017-03-02 14:42:11.000000000 Sublime+Text+3.3126x86.zip
27424736 2017-03-01 11:06:10.000000000 10000setup_hn.exe
1021749 2015-11-18 21:58:37.000000000 dianxincesu.rar
在谷歌硬盘上创建一个文件夹
rclone mkdir googledrive:/5yun/wwwroot/
挂载挂在googledrive中的5yun文件夹到本地backup文件夹中
rclone mount googledrive:5yun /root/backup &
卸载上面挂载的本地目录
fusermount -u /root/backup
转载请注明:楚盟网 » Centos 7安装Rclone用命令同步国外网盘文件