RClone is the Rsync with the Cloud

RClone is the Rsync with the Cloud

RClone is an extended feature set to rsync which provides a way to use cloud storage for file backups. To install it, refer to this link https://rclone.org/downloads/.

RClone
RClone to Cloud

In my example I run these commands to download and install RClone.

wget https://downloads.rclone.org/v1.42/rclone-v1.42-linux-amd64.deb
sudo dpkg --install rclone-v1.42-linux-amd64.deb

Next is to configure RClone to use the cloud service. I ran this command to do that. Refer to this link, https://www.hwrrobotics.com/tutorials/installingRcloneUbuntu14.04 or https://www.unixmen.com/install-configure-rclone-debian-8/

rclone config

2018/08/07 04:02:03 NOTICE: Config file "/home/local/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config

I selected n to create a new remote.

Go through the setup, in my case it was for Box. The config then needs the Box API key to let it communicate with the Box cloud service, issue this command in another terminal window.

rclone authorize "box"

This will spawn the web browser to open and proceed to the Box API link. The terminal will output the following text.

... NOTICE: Config file ".../rclone.conf" not found - using defaults
If your browser doesn't open automatically go to the following link: http://.../auth
Log in and authorize rclone for access
Waiting for code...

This was the URL that opened in the web browser, https://app.box.com/api/oauth2/authorize?….

After clicking the link, the access code was generated in the terminal window.

Got code
Paste the following into your remote machine --->
{"access_token":"xxxxxxxxxxxxxx","token_type":......

With the code pasted in the terminal window running the config, you can finish up the config. Now to sync up some local files to the cloud.  In this example I’m going to sync files from my local system’s IPCam5 folder to my Box instance’s RClone subfolder.

rclone copy /home/local/Videos/DVR/IPCam5/ Box-RClone-Backup:RClone

Depending on the amount of data to sync, this may take a long time to complete. There is no indication from the command of any progress, so be patient. That’s it, now RClone can be used to sync files to the cloud.

Read more here, https://www.hackster.io/uladzislau-bayouski/rclone-the-cloud-connected-048422

Comments are closed.