In this article, we are going to learn about a powerful command-line tool to sync files and directories to and from different cloud storage providers.
rclone comes with a few useful features:
- Always checks for file integrity using MD5/SHA-1 hashes
- Timestamps preserved on files uploaded
- Partial syncs supported on a whole file basis
- Built-in Copy mode to just copy new/changed files
- Sync (one way) mode to make a directory identical
- Check mode to check for file hash equality
- Can sync to and from network, e.g. syncing two different cloud accounts
- Optional encryption (Crypt), optional cache (Cache), optional FUSE mount (rclone mount)
- Multi-threaded downloads to local storage
- Supports HTTP/WebDav/FTP/SFTP/DLNA
How to install rclone on Ubuntu
Because rclone is written in Go programing language, it comes in a single binary file.
There are several ways to install it on Ubuntu. The easiest approach would be to use official package for
apt or the
snap package manager. Alternatively, you can install rclone using a bash install script provided by its development team.
We will walk you through all of them in this article.
Install rclone the official package from Ubuntu repositories (for Ubuntu 18.04 onwards).
Since Ubuntu 18.04 Bionic Beaver, rclone has become mature enough to become a part of the official repositories. To most users, this is the best way as you will have the most stable, well-tested version of rclone on your system.
If the package manager of your choice is
apt, simply run these commands in your terminal. We’ll first make sure that the system is fully updated.
sudo apt update && sudo apt upgrade sudo apt install rclone -y
Unfortunately, if you prefer
snap app store, I have bad news for you : rclone development team has abandoned support for the
snap package because it’s too hard to make it work properly (and peacefully) with the security confinement of
Install rclone using the official bash script
If you have any problem with the package provided by Ubuntu (which is quite rare by the way), you can always install rclone using an official bash script from the development team. Open up your terminal and run the following commands :
You have to make sure
curl is installed on your system :
If you see something like this, then you’re good to go:
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3 Release-Date: 2018-01-24 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
If you see something like this, you will need to install
curl first :
Command 'curl' not found, did you mean: command 'curl' from deb curl Try: sudo apt install
Get curl to your system :
sudo apt install curl -y
Download the bash script and let it does the install :
curl https://rclone.org/install.sh | sudo bash
If you have any difficulties in installing
rclone using any of the methods above, please dont hesitate, let me know in the comments below.
- Which package is required for installing rclone?
curl is required to download rclone installation script
- How to install rclone in Ubuntu 20.04?u003cbru003e
Enter these two commands into terminal app and you're good to gou003cbru003esudo apt update u0026amp;u0026amp; sudo apt upgradeu003cbru003esudo apt install rclone -y
- Can I install rclone using snap?
Unfortunately the answer is no. Snap apps run in containerized mode which makes rclone unable to access files and directory, which in turns defeat the tool's purpose.