Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos 7 installation Rclone how to use commands to synchronize foreign network disk files

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Centos 7 installation Rclone how to use the command to synchronize foreign network disk files, the article is very detailed, has a certain reference value, interested friends must read it!

Domestic network disk is unreliable, waste time blindly; except 115 net disk, I think all others are scum, but its price is too expensive, and how long it can survive is also a question; if you want to store important information, I think it is much more reliable or foreign network disk. Although the free capacity is limited to expand the charge, but the picture is a security guarantee, the data is priceless!

Rclone is an open source program on Github, which is responsible for uploading and downloading artifacts used to synchronize foreign mainstream network disks in linux servers. It supports the following foreign network disks 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

In the afternoon, I used a server with Centos 7 system installed in the local area network at home in the mainland. I ran the Rclone command to upload and download some files on Google's hard disk. The results are often ideal. Here are the diaries I installed.

Netizens give up the unreliable Internet cafes at home and feel much better with foreign ones, so they don't easily get stuck in the same speed limit as dogs, and they don't easily harmonize documents or run away without playing. The key point is speed.

Download and decompress 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

Copy binary files

Cp rclone / usr/sbin/

Chown root:root / usr/sbin/rclone

Chmod 755 / usr/sbin/rclone

Third, install manpage

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

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

Mandb

4. Create a new rclone config file

Rclone config

Return information:

14:25:41 on 2017-03-02 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

Select N to create a new configuration

Name > googledrive

Give the configuration a name, which is random. I chose 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 supports many foreign mainstream network disks, so I choose Google hard disk, so reply 7.

The following two return messages do not need to be filled in directly by entering the car.

Google Application Client Id-leave blank normally.

Client_id >

Google Application Client Secret-leave blank normally.

Client_secret >

The following prompt code replies 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

YBO > n

Copy and paste the following URL authorization link to the browser for authentication

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

Link: https://accounts.google.com/o/oauth3/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 >

After successful verification, you will get a string of numbers and paste it into Enter verification code > and press enter to confirm it.

Enter verification code >

4/oCKeWj4v6tnl9jfdkfjdsk3q8emfxRuZ5HEn49pJ740KJk

The following return message continues to ask you if you confirm the information you just got. Select 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

The following message is returned to reply to Q exit configuration

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

The above is all the contents of the article "how to synchronize foreign network disk files with commands for Centos 7 installation Rclone". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report