国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

Centos 7安裝Rclone如何用命令同步國外網盤文件?

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

國內網盤都是不靠譜的,瞎耽誤功夫;除了115網盤我覺得其它都是渣渣,可它價格忒貴,而且能存活多久也是個問題;如果要存放重要資料個人覺得還是國外網盤靠譜得多,雖然免費容量有限擴容收費,但圖的就是個安全有保障,數據無價!

Rclone這是Github上的一個開源程序,負責在linux服務器中上傳下載同步國外主流網盤用的神器;支持以下國外網盤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;

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

網友們放棄國內不靠譜的坑爹網盤吧,用國外的網盤爽得多,不會動不動就卡得跟狗一樣限速,不會動不動就和諧文件、也不會動不動就不玩了跑路,重點是速度速度速度快;

一、下載解壓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

二、復制二進制文件

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創建一個新的配置

name> googledrive

給配置取一個名字,這個隨意,我選擇了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支持很多國外主流網盤,我選擇谷歌硬盤所以回復7

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

Google Application Client Id - leave blank normally.

client_id>

Google Application Client Secret - leave blank normally.

client_secret>

下面提示代碼回復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

把下面的網址授權鏈接復制粘貼到瀏覽器進行認證

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>

認證成功后會得到一串數字將它粘貼到Enter verification code>后面回車確認

Enter verification code>

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) Yes this is OK

e) Edit this remote

d) Delete this remote

y/e/d> y

下面返回信息回復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

相關文章:
主站蜘蛛池模板: 久久福利青草精品资源站 | 在线免费黄色网址 | 国产精品亚洲精品久久成人 | 国产一级毛片午夜福 | 中文字幕亚洲一区二区v@在线 | 白浆在线视频 | 日美三级 | 92午夜国产福利视频1000 | 久艹视频在线观看 | 在线天天干| 亚洲一级理论片 | 欧美精品做人一级爱免费 | 欧美三级在线观看视频 | 手机看片1024精品国产 | 日韩18在线观看 | 亚洲国产视频网 | 99久久一区二区精品 | 中文字幕有码视频 | 黄色a网站 | 精品欧美成人高清视频在线观看 | 一级毛片免费视频网站 | 手机在线成人精品视频网 | 久久精品国产免费一区 | a欧美在线 | 国产三级精品播放 | 国产激情一区二区三区在线观看 | 特及毛片| 亚洲精品自产拍在线观看 | 成年片美女福利视频在线 | 免费观看日本特色做爰视频在线 | 欧美国产综合日韩一区二区 | 97成人在线视频 | 亚洲日本va午夜中文字幕一区 | 色综合色狠狠天天久久婷婷基地 | 日本一区二区三区高清福利视频 | 亚洲欧美小视频 | 成年大片免费视频播放二级 | 亚洲香蕉久久一区二区 | 国产激爽大片在线播放 | 国厂自拍| 国产精品久久久久久一区二区 |