av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術(shù)文章
文章詳情頁

Centos 7安裝Rclone如何用命令同步國(guó)外網(wǎng)盤文件?

瀏覽:364日期:2022-06-06 16:14:05

國(guó)內(nèi)網(wǎng)盤都是不靠譜的,瞎耽誤功夫;除了115網(wǎng)盤我覺得其它都是渣渣,可它價(jià)格忒貴,而且能存活多久也是個(gè)問題;如果要存放重要資料個(gè)人覺得還是國(guó)外網(wǎng)盤靠譜得多,雖然免費(fèi)容量有限擴(kuò)容收費(fèi),但圖的就是個(gè)安全有保障,數(shù)據(jù)無價(jià)!

Rclone這是Github上的一個(gè)開源程序,負(fù)責(zé)在linux服務(wù)器中上傳下載同步國(guó)外主流網(wǎng)盤用的神器;支持以下國(guó)外網(wǎng)盤Google Drive、Amazon S3、Openstack Swift / Rackspace cloud files / Memset Memstore、Dropbox、Google Cloud Storage、Amazon Drive、Microsoft One Drive、Hubic、Backblaze B2、Yandex Disk、The local filesystem;

下午我在內(nèi)地家里使用局域網(wǎng)中的一臺(tái)安裝了Centos 7系統(tǒng)的服務(wù)器,運(yùn)行Rclone命令上傳下載了一些谷歌硬盤上的文件測(cè)試,效果灰常灰常理想,下面是我安裝的記錄日記;

網(wǎng)友們放棄國(guó)內(nèi)不靠譜的坑爹網(wǎng)盤吧,用國(guó)外的網(wǎng)盤爽得多,不會(huì)動(dòng)不動(dòng)就卡得跟狗一樣限速,不會(huì)動(dòng)不動(dòng)就和諧文件、也不會(huì)動(dòng)不動(dòng)就不玩了跑路,重點(diǎn)是速度速度速度快;

一、下載解壓Rclone

curl -O http://downloads.rclone.org/rclone-current-linux-amd64.zip

yum install unzip -y

unzip rclone-current-linux-amd64.zip

cd rclone-v1.35-linux-amd64

二、復(fù)制二進(jìn)制文件

cp rclone /usr/sbin/

chown root:root /usr/sbin/rclone

chmod 755 /usr/sbin/rclone

三、安裝 manpage

mkdir -p /usr/local/share/man/man1

cp rclone.1 /usr/local/share/man/man1/

mandb

四、新建rclone config文件

rclone config

返回信息:

2017/03/02 14:25:41 Config file "/root/.rclone.conf" not found - using defaults

No remotes found - make a new one

n) New remote

s) Set configuration password

q) Quit config

選擇N創(chuàng)建一個(gè)新的配置

name> googledrive

給配置取一個(gè)名字,這個(gè)隨意,我選擇了googledrive

Type of storage to configure.

Choose a number from below, or type in your own value

1 / Amazon Drive

\ "amazon cloud drive"

2 / Amazon S3 (also Dreamhost, Ceph, Minio)

\ "s3"

3 / Backblaze B2

\ "b2"

4 / Dropbox

\ "dropbox"

5 / Encrypt/Decrypt a remote

\ "crypt"

6 / Google Cloud Storage (this is not Google Drive)

\ "google cloud storage"

7 / Google Drive

\ "drive"

8 / Hubic

\ "hubic"

9 / Local Disk

\ "local"

10 / Microsoft OneDrive

\ "onedrive"

11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)

\ "swift"

12 / Yandex Disk

\ "yandex"

Rclone支持很多國(guó)外主流網(wǎng)盤,我選擇谷歌硬盤所以回復(fù)7

以下兩條返回信息直接回車不用填寫信息

Google Application Client Id - leave blank normally.

client_id>

Google Application Client Secret - leave blank normally.

client_secret>

下面提示代碼回復(fù)n

Remote config

Use auto config?

* Say Y if not sure

* Say N if you are working on a remote or headless machine or Y didn"t work

y) Yes

n) No

y/n> n

把下面的網(wǎng)址授權(quán)鏈接復(fù)制粘貼到瀏覽器進(jìn)行認(rèn)證

If your browser doesn"t open automatically go to the following

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

Log in and authorize rclone for access

Enter verification code>

認(rèn)證成功后會(huì)得到一串?dāng)?shù)字將它粘貼到Enter verification code>后面回車確認(rèn)

Enter verification code>

4/oCKeWj4v6tnl9jfdkfjdsk3q8emfxRuZ5HEn49pJ740KJk

下面的返回信息繼續(xù)問你是否確認(rèn)剛才得到的信息選擇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) Yes this is OK

e) Edit this remote

d) Delete this remote

y/e/d> y

下面返回信息回復(fù)q退出配置

Current remotes:

Name Type

==== ====

googledrive drive

e) Edit existing remote

n) New remote

d) Delete remote

s) Set configuration password

q) Quit config

e/n/d/s/q> q

相關(guān)文章:
主站蜘蛛池模板: 亚洲逼院 | 亚洲www啪成人一区二区 | 欧洲一区视频 | 欧美亚洲高清 | 99精品在线 | 亚洲欧美中文日韩在线v日本 | 亚洲美女一区 | 国产精品片| 亚洲精品天堂 | 欧美一级做性受免费大片免费 | 中文字幕亚洲无线 | 午夜成人在线视频 | 精品九九 | 一本色道久久综合亚洲精品高清 | 天天久久| 亚洲一区二区三区高清 | 韩国精品在线 | 蜜桃视频在线观看www社区 | 欧美一级在线免费 | 久久久久国产视频 | 国产一区不卡 | 一区二区三区久久久 | 91新视频 | 精品免费国产一区二区三区四区介绍 | 亚洲最大福利网 | 久久久精品在线 | 精品久久久久久亚洲精品 | 亚洲精品一区二区三区中文字幕 | 97精品国产| 久久精品小短片 | 日韩在线成人 | 免费一看一级毛片 | 一区二区三区回区在观看免费视频 | 在线视频一区二区三区 | 久久久久久久久久久久久九 | 欧美一区二区小视频 | 欧美激情在线精品一区二区三区 | 国产日韩久久 | 亚洲欧美一区二区三区视频 | 日韩有码一区 | 中文字幕不卡在线观看 |