Instalasi RClone
Jalankan command berikut untuk install rclone:
Ketik perintah berikut:
sudo -v ; curl https://rclone.org/install.sh | sudo bash
Jika muncul gagal seperti di bawah:
None of the supported tools for extracting zip archives (unzip 7z busybox) were found. Please install one of them and try again.
Install 7zip terlebih dahulu.
sudo apt-get install unzip p7zip-full
Jika instalasi berhasil, akan muncul seperti di bawah ini:
rclone v1.73.4 has successfully installed. Now run "rclone config" for setup. Check https://rclone.org/docs/ for more details.
Konfigurasi RClone
Jalankan:
rclone config
Tambahkan remote baru, pilih n untuk new remote, Isi nama remote (bebas, contoh): onedrive
</div> <div>No remotes found, make a new one?</div> <div>n) New remote</div> <div>s) Set configuration password</div> <div>q) Quit config</div> <div>This value must be a single character, one of the following: n, s, q.</div> <div>n/s/q; n
Pilih storage Microsoft OneDrive
Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. ... 40 / Microsoft Azure Files \ (azurefiles) 41 / Microsoft OneDrive \ (onedrive) 42 / OpenDrive \ (opendrive) ... Storage; 41
Client ID & Secret
Kosongkan saja (tekan ENTER):
client_id → ENTER
client_secret → ENTER
client_secret → ENTER
Pilih region
</div> <div class="cm-content q9tKkq_readonly">Option region.</div> </div> <div class="cm-scroller"> <div>Choose national cloud region for OneDrive. Choose a number from below, or type in your own value of type string. Press Enter for the default (global). 1 / Microsoft Cloud Global \ (global) 2 / Microsoft Cloud for US Government \ (us) 3 / Microsoft Cloud Germany (deprecated - try global region first). \ (de) 4 / Azure and Office 365 operated by Vnet Group in China \ (cn) region> 1</div> <div>
Tenant ID
Kosongkan saja (tekan ENTER):
tenant → ENTER
Advanced Setting
Pilih n
Login ke OneDrive dengan brower, pilih y lalu paste link ke browser di Windows
</div><div>Use web browser to automatically authenticate rclone with remote?</div><div> * 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 access If not sure try Y. If Y failed, try N. y) Yes (default) n) No y/n&gt; y 2026/04/19 08:39:12 NOTICE: Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config. 2026/04/19 08:39:12 ERROR : Failed to open browser automatically (exec: "xdg-open": executable file not found in $PATH) - please go to the following link: http://127.0.0.1:53682/auth?state=Z7_mvEnSUxkbLgEklpVHkA 2026/04/19 08:39:12 NOTICE: Log in and authorize rclone for access 2026/04/19 08:39:12 NOTICE: Waiting for code... 2026/04/19 08:40:25 NOTICE: Got code
Pilih OneDrive Personal
Option config_type. Type of connection Choose a number from below, or type in an existing value of type string. Press Enter for the default (onedrive). 1 / OneDrive Personal or Business \ (onedrive) 2 / Root Sharepoint site \ (sharepoint) / Sharepoint site name or URL 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite \ (url) 4 / Search for a Sharepoint site \ (search) 5 / Type in driveID (advanced) \ (driveid) 6 / Type in SiteID (advanced) \ (siteid) / Sharepoint server-relative path (advanced) 7 | E.g. /teams/hr \ (path) config_type&gt; 1
Pilih Drive OneDrive Personal, Anda akan mendapat link bisa digunakan untuk melihat apakah benar akun OneDrive yang dituju.
Pilih keep
Keep this "onedrive" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d&gt; y
Keluar dari konfigurasi
Current remotes: Name Type ==== ==== onedrive onedrive e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q&gt; q
Cek koneksi, jika muncul folder OneDrive Anda, maka koneksi sudah benar
rclone lsd onedrive: