国内网盘都是不靠谱的,瞎耽误功夫;除了115网盘我觉得其它都是渣渣,可它价格忒贵,而且能存活多久也是个问题;如果要存放重要资料个人觉得还是国外网盘靠谱得多,虽然免费容量有限扩容收费,但图的就是个安全有保障,数据无价!
Rclone这是Github上的一个开源程序,负责在linux服务器中上传下载同步国外主流网盘用的神器;支持以下国外网盘GoogleDrive、AmazonS3、OpenstackSwift/Rackspacecloudfiles/MemsetMemstore、Dropbox、GoogleCloudStorage、AmazonDrive、MicrosoftOneDrive、Hubic、BackblazeB2、YandexDisk、Thelocalfilesystem;
下午我在内地家里使用局域网中的一台安装了Centos7系统的服务器,运行Rclone命令上传下载了一些谷歌硬盘上的文件测试,效果灰常灰常理想,下面是我安装的记录日记;
网友们放弃国内不靠谱的坑爹网盘吧,用国外的网盘爽得多,不会动不动就卡得跟狗一样限速,不会动不动就和谐文件、也不会动不动就不玩了跑路,重点是速度速度速度快;
一、下载解压Rclone
curl-Ohttp://downloads.rclone.org/rclone-current-linux-amd64.zip
yuminstallunzip-y
unziprclone-current-linux-amd64.zip
cdrclone-v1.35-linux-amd64
二、复制二进制文件
cprclone/usr/sbin/
chownroot:root/usr/sbin/rclone
chmod755/usr/sbin/rclone
三、安装manpage
mkdir-p/usr/local/share/man/man1
cprclone.1/usr/local/share/man/man1/
mandb
四、新建rcloneconfig文件
rcloneconfig
返回信息:
2017/03/0214:25:41Configfile"/root/.rclone.conf"notfound-usingdefaults
Noremotesfound-makeanewone
n)Newremote
s)Setconfigurationpassword
q)Quitconfig
选择N创建一个新的配置
name>googledrive
给配置取一个名字,这个随意,我选择了googledrive
Typeofstoragetoconfigure.
Chooseanumberfrombelow,ortypeinyourownvalue
1/AmazonDrive
\"amazonclouddrive"
2/AmazonS3(alsoDreamhost,Ceph,Minio)
\"s3"
3/BackblazeB2
\"b2"
4/Dropbox
\"dropbox"
5/Encrypt/Decryptaremote
\"crypt"
6/GoogleCloudStorage(thisisnotGoogleDrive)
\"googlecloudstorage"
7/GoogleDrive
\"drive"
8/Hubic
\"hubic"
9/LocalDisk
\"local"
10/MicrosoftOneDrive
\"onedrive"
11/OpenstackSwift(RackspaceCloudFiles,MemsetMemstore,OVH)
\"swift"
12/YandexDisk
\"yandex"
Rclone支持很多国外主流网盘,我选择谷歌硬盘所以回复7
以下两条返回信息直接回车不用填写信息
GoogleApplicationClientId-leaveblanknormally.
client_id>
GoogleApplicationClientSecret-leaveblanknormally.
client_secret>
下面提示代码回复n
Remoteconfig
Useautoconfig?
*SayYifnotsure
*SayNifyouareworkingonaremoteorheadlessmachineorYdidn'twork
y)Yes
n)No
y/n>n
把下面的网址授权链接复制粘贴到浏览器进行认证
Ifyourbrowserdoesn'topenautomaticallygotothefollowing
link:https://accounts.google.com/o/oauth2/auth?client_id=202266665644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=88888c7be7969e4f5dd4cf1619265571
Loginandauthorizercloneforaccess
Enterverificationcode>
认证成功后会得到一串数字将它粘贴到Enterverificationcode>后面回车确认
Enterverificationcode>
4/oCKeWj4v6tnl9jfdkfjdsk3q8emfxRuZ5HEn49pJ740KJk
下面的返回信息继续问你是否确认刚才得到的信息选择y
[googledrive]
client_id=
client_secret=
token={"access_token":"ya29.GlsCBKS2rJqd_YuroyWklklklklklklSPPISs58WMJCm54DauJ_QeZudvKTTUOZ4fS09mt5wqcAggfdgdfmAqojdaTTJv-ukAoC_q0lgdfgfdtSv4yn_yEtaEtG","token_type":"Bearer","refresh_token":"1/5Tv8KqnjWb_oTtO7QDm2umcRQgfgfdgdfgfKMJIOC7dkU","expiry":"2017-03-02T15:42:10.847395882+08:00"}
--------------------
y)YesthisisOK
e)Editthisremote
d)Deletethisremote
y/e/d>y
下面返回信息回复q退出配置
Currentremotes:
NameType
========
googledrivedrive
e)Editexistingremote
n)Newremote
d)Deleteremote
s)Setconfigurationpassword
q)Quitconfig
e/n/d/s/q>q