Rclone: A Command-line program to Manage Files on Cloud Storage
Introduction
Merujuk ke website resminya, rclone adalah sebuah software (open source) yang digunakan untuk me-manage penyimpanan di cloud melalui terminal (CLI / command line interface).1 Singkatnya, dengan menggunakan rclone, kita dapat mengakses, mengedit, menambahkan, dan menghapus file dan folder yang ada di berbagai cloud storage yang kita miliki, seperti Google Drive, OneDrive, Dropbox, Mega, dan masih banyak lagi, hanya dengan perintah-perintah “sederhana” di terminal.
Selain yang baru saja saya mention, masih ada banyak cloud storage lain yang di-support oleh rclone. Totalnya lebih dari 70 platform cloud storage yang sudah di-support oleh rclone. Untuk daftarnya, silakan merujuk pada halaman website official rclone berikut:
Atau bisa juga dilihat di repository Github-nya:
Yang masih jadi perhatian saya hingga saat ini (minimal sampai artikel ini terakhir dimodifikasi), rclone masih belum support Terabox. Padahal itu adalah cloud storage paling “dermawan” karena memberikan penggunanya akses ke penyimpanan sebesar 1 TB secara cuma-cuma alias gratis, di saat platform lain hanya berani memberi 1-20 GB untuk versi gratisnya.
Installation
Berikut adalah cara instalasinya di beberapa distro linux/UNIX:
| Distro | Command |
|---|---|
| Debian/Ubuntu | sudo apt install -y rclone |
| Arch Linux | sudo pacman -Sy rclone |
| Fedora | sudo dnf install rclone |
| Opensuse | sudo zypper install rclone |
| FreeBSD | sudo pkg install rclone |
NixOS:
Masukkan baris berikut di file konfigurasi (/etc/nixos/configuration.nix):
environment.systemPackages = [ pkgs.rclone ];Atau jika menggunakan nix-shell:
nix-shell -p rcloneAtau jika ingin melakukan instalasi menggunakan binary dari source code-nya langsung atau via script, bisa merujuk ke website rclone untuk lebih detailnya:
Untuk memastikan rclone sudah ter-install di sistem kita:
rclone --version
Usage
Berikut adalah cara menggunakan rclone, mulai dari mengkonfigurasi hingga mengakses file. Sebagai catatan saja, semua proses ini hanya dapat dilakukan jika kita sudah memiliki akun di cloud storage tersebut.
Configuration
Karena ada lebih dari 70 cloud storage yang di-support oleh rclone, jadi saya hanya akan mencontohkan 6 diantaranya saja. Btw, semua konfigurasi cloud storage kita akan disimpan di ~/.config../images/rclone/rclone.conf.
Untuk memastikan lokasi file konfigurasinya, kita bisa periksa dengan perintah:
rclone config file
1. Google Drive
Google Drive menyediakan [15 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- token
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi Google Drive.2
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
No remotes found, make a new one?n) New remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confign/r/c/s/q> nname> gdrive # ini boleh diisi sesuai nama yang ingin kalian buat.Type of storage to configure.Choose a number from below, or type in your own value[snip]XX / Google Drive \ "drive"[snip]Storage> driveGoogle Application Client Id - leave blank normally.client_id>Google Application Client Secret - leave blank normally.client_secret>Scope that rclone should use when requesting access from drive.Choose a number from below, or type in your own value 1 / Full access all files, excluding Application Data Folder. \ "drive" 2 / Read-only access to file metadata and file contents. \ "drive.readonly" / Access to files created by rclone only. 3 | These are visible in the drive website. | File authorization is revoked when the user deauthorizes the app. \ "drive.file" / Allows read and write access to the Application Data folder. 4 | This is not visible in the drive website. \ "drive.appfolder" / Allows read-only access to file metadata but 5 | does not allow any access to read or download file content. \ "drive.metadata.readonly"scope> 1Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.service_account_file>Remote configUse web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser accessIf not sure try Y. If Y failed, try N.y) Yesn) Noy/n> yIf your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/authLog in and authorize rclone for accessWaiting for code...Got codeConfigure this as a Shared Drive (Team Drive)?y) Yesn) Noy/n> nConfiguration complete.Options:type: drive- client_id:- client_secret:- scope: drive- root_folder_id:- service_account_file:- token: {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"}Keep this "remote" remote?y) Yes this is OKe) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi Google Drive:
rclone config show <nama_drive>
2. Mega
Mega menyediakan [20 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- username (email)
- password
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi Mega.3
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
No remotes found, make a new one?n) New remotes) Set configuration passwordq) Quit confign/s/q> nname> mega # ini boleh diisi sesuai nama yang ingin kalian buat.Type of storage to configure.Choose a number from below, or type in your own value[snip]XX / Mega \ "mega"[snip]Storage> megaUser nameuser> you@example.comPassword.y) Yes type in my own passwordg) Generate random passwordn) No leave this optional password blanky/g/n> yEnter the password:password:Confirm the password:password:Remote configConfiguration complete.Options:- type: mega- user: you@example.com- pass: *** ENCRYPTED ***Keep this "remote" remote?y) Yes this is OKe) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi Mega:
rclone config show <nama_drive>
3. Proton Drive
Proton Drive menyediakan [2 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- username (email)
- password
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi Proton Drive.4
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
No remotes found, make a new one?n) New remotes) Set configuration passwordq) Quit confign/s/q> nname> protondrive # ini boleh diisi sesuai nama yang ingin kalian buat.Type of storage to configure.Choose a number from below, or type in your own value[snip]XX / Proton Drive \ "protondrive"[snip]Storage> protondriveUser nameuser> you@protonmail.comPassword.y) Yes type in my own passwordg) Generate random passwordn) No leave this optional password blanky/g/n> yEnter the password:password:Confirm the password:password:Option 2fa.2FA code (if the account requires one)Enter a value. Press Enter to leave empty.2fa> 123456Remote configConfiguration complete.Options:- type: protondrive- user: you@protonmail.com- pass: *** ENCRYPTED ***Keep this "remote" remote?y) Yes this is OKe) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi Proton Drive:
rclone config show <nama_drive>
4. One Drive
One Drive menyediakan [5 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- token
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi One Drive.5
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q> nname> onedrive # ini boleh diisi sesuai nama yang ingin kalian buat.Type of storage to configure.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value[snip]XX / Microsoft OneDrive \ "onedrive"[snip]Storage> onedriveMicrosoft App Client IdLeave blank normally.Enter a string value. Press Enter for the default ("").client_id>Microsoft App Client SecretLeave blank normally.Enter a string value. Press Enter for the default ("").client_secret>Edit advanced config? (y/n)y) Yesn) Noy/n> nRemote configUse web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser accessIf not sure try Y. If Y failed, try N.y) Yesn) Noy/n> yIf your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/authLog in and authorize rclone for accessWaiting for code...Got codeChoose a number from below, or type in an existing value 1 / OneDrive Personal or Business \ "onedrive" 2 / Sharepoint site \ "sharepoint" 3 / Type in driveID \ "driveid" 4 / Type in SiteID \ "siteid" 5 / Search a Sharepoint site \ "search"Your choice> 1Found 1 drives, please select the one you want to use:0: OneDrive (business) id=b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqkChose drive to use:> 0Found drive 'root' of type 'business', URL: https://org-my.sharepoint.com/personal/you/DocumentsIs that okay?y) Yesn) Noy/n> yConfiguration complete.Options:- type: onedrive- token: {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018-08-26T22:39:52.486512262+08:00"}- drive_id: b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk- drive_type: businessKeep this "remote" remote?y) Yes this is OKe) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi One Drive:
rclone config show <nama_drive>
5. Backblaze B2
Backblaze B2 menyediakan [10 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- account (application key ID)
- key (application key)
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi Backblaze.6
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
No remotes found, make a new one\?n) New remoteq) Quit confign/q> nname> backblaze # ini boleh diisi sesuai nama yang ingin kalian buat.Type of storage to configure.Choose a number from below, or type in your own value[snip]XX / Backblaze B2 \ "b2"[snip]Storage> b2Account ID or Application Key IDaccount> 123456789abcApplication Keykey> 0123456789abcdef0123456789abcdef0123456789Endpoint for the service - leave blank normally.endpoint>Remote configConfiguration complete.Options:- type: b2- account: 123456789abc- key: 0123456789abcdef0123456789abcdef0123456789- endpoint:Keep this "remote" remote?y) Yes this is OKe) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi Backblaze:
rclone config show <nama_drive>
6. Koofr
Koofr menyediakan [10 GB] penyimpanan gratis kepada penggunanya.
Persyaratan yang perlu dipenuhi:
- username (email)
- password
Berikut adalah langkah-langkah (yang paling sederhana) untuk mengkonfigurasi Koofr.7
rclone configSelanjutnya, kita akan diarahkan pada proses interaktif:
No remotes found, make a new one?n) New remotes) Set configuration passwordq) Quit confign/s/q> nname> koofr # ini boleh diisi sesuai nama yang ingin kalian buat.Option Storage.Type of storage to configure.Choose a number from below, or type in your own value.[snip]22 / Koofr, Digi Storage and other Koofr-compatible storage providers \ (koofr)[snip]Storage> koofrOption provider.Choose your storage provider.Choose a number from below, or type in your own value.Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/ \ (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/ \ (digistorage) 3 / Any other Koofr API compatible storage service \ (other)provider> 1Option user.Your user name.Enter a value.user> USERNAMEOption password.Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password).Choose an alternative below.y) Yes, type in my own passwordg) Generate random passwordy/g> yEnter the password:password:Confirm the password:password:Edit advanced config?y) Yesn) No (default)y/n> nRemote config--------------------[koofr]type = koofrprovider = koofruser = USERNAMEpassword = *** ENCRYPTED ***--------------------y) Yes this is OK (default)e) Edit this remoted) Delete this remotey/e/d> yKita bisa melihat konfigurasi Koofr:
rclone config show <nama_drive>
Listing remotes
Sekarang, kita dapat melihat daftar cloud storage yang sudah terkonfigurasi:
rclone listremotes
Set Config Password
Kita bisa menambahkan password untuk konfigurasi rclone kita, sehingga tidak sembarangan orang dapat mengaksesnya.
rclone configKemudian, kita tinggal mengikuti alur pembuatan passwordnya:
Current remotes:
Name Type==== ====backblaze b2gdrive drivekoofr koofrmega megaonedrive onedriveproton protondrive
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q> s
Your configuration is not encrypted.If you add a password, you will protect your login information to cloud services.a) Add Passwordq) Quit to main menua/q> aEnter NEW configuration password:password:Confirm NEW configuration password:password:Password setYour configuration is encrypted.c) Change Passwordu) Unencrypt configurationq) Quit to main menuc/u/q>Sekarang, tidak semua orang dapat mengakses configurasi rclone kita, pun juga tidak sembarang orang dapat menggunakan rclone untuk terhubung ke cloud storage yang kita punya, karena mereka perlu meng-input-kan password terlebih dahulu.

Kalau kita ingin membatalkan password konfigurasi rclone-nya, juga bisa:
rclone configTinggal ikuti alur untuk menghapus password konfigurasinya:
Enter configuration password:password:Current remotes:
Name Type==== ====backblaze b2gdrive drivekoofr koofrmega megaonedrive onedriveproton protondrive
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q> s
Your configuration is encrypted.c) Change Passwordu) Unencrypt configurationq) Quit to main menuc/u/q> uYour configuration is not encrypted.If you add a password, you will protect your login information to cloud services.a) Add Passwordq) Quit to main menua/q>Access
Setelah konfigurasi terpasang, kita sebetulnya sudah dapat mengakses cloud storage kita via terminal, mulai dari mendaftar isi file dan folder, membuat/mengedit/menambahkan/menghapus file dan folder, dan masih banyak lagi.
Mounting
Cara paling praktis adalah me-mounting cloud storage kita terlebih dahulu.
rclone mount <nama>: <mount_point>Untuk melihat apakah sudah ter-mounting:
df -hContohnya, saya akan me-mounting Google Drive saya:

Jika sudah ter-mounting, praktis kita sudah dapat memperlakukan cloud storage tersebut seperti folder atau direktori pada umumnya di komputer kita.
Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone mount --help
Jika sudah tidak perlu lagi, kita bisa meng-unmout dengan perintah:
fusermount -u <mount_point>Listing
Tapi, tanpa me-mounting pun, kita masih dapat melakukan beberapa operasi yang spesifik, salah satunya adalah mendaftar file atau direktori/folder (listing). Berikut adalah beberapa perintahnya:
- Mendaftar semua file dan direktori.
rclone ls <nama>:Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone ls --help
- Mendaftar direktori/container/bucket saja.
rclone lsd <nama>:Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone lsd --help
- Mendaftar semua file dan direktori, berikut dengan modification time, size, dan path.
rclone lsl <nama>:Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone lsl --help
- Mendaftar file dan direktori dengan struktur.
rclone tree <nama>:Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone tree --help
Creating
Kita juga bisa membuat direktori dan file baru.
- Membuat direktori baru.
rlcone mkdir <nama>:/<direktori_baru>Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone mkdir --help
- Membuat file baru.
rclone touch <nama>:/<file_baru>Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone touch --help
Uploading & Downloading
Kita juga bisa menambahkan (meng-upload dan men-download) file dan direktori/folder.
Untuk meng-upload/men-download file dan direktori/folder, kita dapat menggunakan salah satu diantara dua opsi berikut:
rclone copy: untuk meng-copy/meng-upload/men-download file & direktory.rclone move: untuk memindahkan/meng-upload/men-download file & direktory.
rclone copy -P source:path destination:pathJika ingin meng-copy direktori, jangan lupa menambahkan path/direktori yang ingin di-copy di destination. Contoh:
rclone copy test/ gdrive:/direktori_baru/test
Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone copy --help
rclone move -P source:path destination:pathJika ingin meng-copy direktori, jangan lupa menambahkan path/direktori yang ingin di-copy di destination. Contoh:
rclone move coba/ gdrive:/direktori_baru/coba
Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone move --help
Deleting
Kita bisa menghapus file dan direktori.
Untuk menghapus direktori dan seluruh isinya:
rclone purge remote:pathUntuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone purge --help
Untuk menghapus file, kita punya 2 cara:
- Menghapus file secara individual.
rclone deletefile remote:path/<file_name>Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone deletefile --help
- Menghapus file dengan kriteria tertentu.
Misalnya, saya ingin menghapus file yang ukurannya 0 KB.
rclone delete remote:path --max-size 1KPerintah di atas berarti, rclone akan menghapus semua file yang berukuran kurang dari 1 KB di direktori (dan sub-direktori) yang di-input-kan.
Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone delete --help
Providing link
Kita juga bisa membuat link untuk file atau direktori yang ingin kita bagikan:
- Membuat like untuk file.
rclone link remote:path/to/file- Membuat link untuk direktori/folder.
rclone link remote:path/to/folderUntuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone link --help
GUI
Jika kita ingin proses manajemen cloud storage-nya lebih interaktif, kita bisa menfaatkan fitur GUI rclone yang akan ditampilkan melaui interface web:
rclone gui --rc-web-gui-no-open-browserNanti, akan muncul alamat url untuk membuka web-nya. Pastikan kita meng-copy-paste semua url yang muncul (termasuk creds-nya).

Untuk lebih tau cara menggunakan perintahnya secara detail:
Terminal window rclone gui --help
Untuk mengeksplorasi perintah-perintah dan kemampuan dari rclone yang belum dibahas di sini, silakan cari tahu sendiri dengan perintah:
rclone helpOke, sekian dulu tutorial rclone.
Terima kasih sudah mampir.
Footnotes
Support & Share
If this article helped you, please share or support!











