Install and configure Rclone on Debian 8

Rclone on Debian 8


Rclone is a command line program developed to sync files and directories to and from various cloud storage services, like Google Drive, Amazon S3, Dropbox, Microsoft OneDrive and Yandex Disk.
Rclone’s main features are:

  • MD5/SHA1 hashes are checked consistently for file integrity
  • Timestamps are preserved on files
  • Sync to and from the network, e.g: two different cloud accounts
  • Encryption

It is written in Go, and distributed under the MIT licence.
In this tutorial, we will install, configure and test rclone on Debian 8.


‘Go’ installation

First, you will need to install Go. It is available in the repository, you just need to execute the command:

# apt install golang

Make sure that you check if the $GOPATH is set:

$ echo $GOPATH

If not, set it just like this:

$ export GOPATH="$HOME/gopath/"

Now that you have installed Go, it’s possible to download rclone by executing the following command:

$ go get -u -v

This will download and build the binary in $GOPATH/bin.
As the root, copy the binary to /usr/local/bin (or /usr/bin):

$ cd $GOPATH/bin
# cp rclone /usr/local/bin

Rclone configuration

Execute the following command:

$ rclone config

This will start the configuration process. After that, the program will print the following output:

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config

Of course, when running the system for the first time, you’ll want to set a new remote, so type ‘n’ and then ENTER.
For the purpose of this tutorial, we will configure access to Dropbox, so, set “dropbox” as the new name
N.B.: you can choose any name you want, of course.

Rclone will print the following text:

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"

When you see this text, press ‘4’ and then ENTER.
Leave the next two questions blank. Rclone will print out a URL which you may then visit with a web browser. After logging in with your cloud storage credentials, you will see a code. Copy the code into your terminal to complete the Rclone configuration process. This pass will be required for every cloud storage system you want to set up.

Testing Rclone

As you can see, the configuration process is very easy and fast. Now it’s time to ensure that you’ve done it correctly!
In my $HOME, I have a text file named “test.txt”. To test Rclone I will execute the command:

$ rclone copy $HOME/test.txt dropbox:

The program should copy it to my remote cloud storage.
This is the simplest case as we are dealing with only one file, but Rclone can also copy folders using this command:

$ rclone copy $HOME/Documents/ dropbox:Documents

Using this command the folder and all of it’s contents should be correctly copied.
It’s also possible to list the content of the remote folder, like this:

$ rclone ls dropbox:

or like this:

$ rclone lsl dropbox:

if you are dealing with lots of information in many stored files.
Rclone also has the ability to create new paths on remote folders. For example, with the following command:

$ rclone mkdir dropbox:/unixmen/gmolica

you can transfer the whole structure of folders to Dropbox, which will create the structure of folders under unixmen/gmolica

It’s also possible to sync two folders using this command:

$ rsync $HOME/Documents dropbox:/Documents

Note that this command will delete any file that exist in the source file but don’t exist in the destination file.


This was just a rapid overview, but it should be helpful! In this tutorial we presented the main features of rclone. Keep in mind that this system is most useful when you just want to check or transfer files to or from a cloud storage service.


  1. I have made $104000 in 2016 by doing an online job a­n­d I was able to do it by working part-time for 3 or sometimes more h on daily basis. I followed an earning model I was introduced by this web-site i found online and I am so amazed that I was able to earn so much money on the side. It’s user-friendly a­n­d I am just so blessed that i discovered this. Here is what i do… please visit my account for webpage

  2. I got paid 104 thousand dollars previous year by freelancing from my house a­­n­­d I manage to do it by work­ing part-time f­­o­­r few hrs daily. I used an earning model I found online and I am amazed that i was able to make such great money. It’s so user-friendly a­n­d I am just so blessed that i learned about it. This is what i do… TWITTER.COM/StinnettMargar1/status/835739136078163968

  3. I have profited 104 thousand dollars in last twelve months by freelancing online a­­n­­d I did it by wo­rking part time f­­o­­r several h /daily. I followed a business model I found on-line and I am amazed that i was able to make so much extra income. It’s very user friendly a­­n­­d I’m so thankful that i discovered it. Check out what I do… EASYURL.NET/523c8

  4. I’ve profited 104,000 thousand dollars last year by freelancing from home and I did that by wo­rking part time for several h a day. I used a business model I was introduced by this website i found on-line and I am so thrilled that i made such great money. It’s very newbie friendly a­n­d I am just so happy that i learned about it. Here’s what I did… EASYURL.NET/9861f

  5. I have profited 104 thousand dollars in last twelve months by freelancing from my house a­n­d I was able to do it by wo­rking in my own time f­­o­­r few h each day. I was following work opportunity I was introduced by this website i found online and I am so thrilled that i earned so much money. It’s very user friendly and I’m so grateful that i found it. Here is what i do… http://jump­.­wtf/CCcHHu1

  6. I profited 104 thousand dollars in 2016 by working from my home a­n­d I manage to accomplish that by w­o­r­k­i­n­g in my own time for few hrs each day. I’m using work opportunity I found on-line and I am so thrilled that i earned such great money. It’s really user-friendly a­­n­­d I’m just so thankful that I found out about this. Here’s what I do… http://budget25­.­weebly­.­com

  7. I was paid 104000 bucks in last 12 months by working online from my house a­­n­­d I did it by working part time f­o­r several h every day. I was following an earning opportunity I came across online and I am so happy that i was able to make so much money. It’s newbie-friendly a­n­d I am just so blessed that i discovered it. Here’s what I do… http://tny­.­im/8yR

  8. I was without work for six months time when my former Co-worker ultimately recommended me to begin freelancing from home… It was just after I gained $5000 in my very first thirty days when I really believed I really could do this for a living! Today I am joyful than ever… I work-at-home and I am my own boss now like I always wanted… I see quite a lot of not satisfied people around me, working the same old boring job that’s sucking the life from all of them day-after-day… Each time I see anyone like that I say START FREELANCING MAN! This is how I started off >>>> http://libr­.­ae/kw5d


Please enter your comment!
Please enter your name here