Knowledge Base

Transferring files to OneDrive for Business via rclone


Rclone  is installed on NX Linux Desktop Service and RACC and the currently installed version is 1.48

Rclone is an open source command line program to sync files and directories to and from local storage to cloud based storage, such as OneDrive for Business.

Using Rclone is not formally supported by IT. We will try to keep the software up to date and help users only on an available effort basis. There is no guarantee that the software is fully compatible or will remain compatible with One Drive service.
Below is a quick guide to using Rclone with OneDrive and further information can be found in the Rclone documentation

Setting up an rclone Environment

From a terminal on NX run the following command to setup your environment. This is a one time operation as the configuration is held in your home directory.

No remote environments exist yet, so we will select ‘n’
You will then be asked to choose a name for the connection. We recommend using ‘remote’ as this is the same as our examples below.

Select option 19 for Microsoft One Drive

Firefox will then be launched requesting a login to OneDrive for Business. This is your UoR email address and password.

Once you have logged you will be asked for the type OneDrive i.e personal/business and select the drive you want to use from those found.


You then need to confirm your environment  Select ‘y‘ to save and then ‘q‘ to quit the setup.

Initiating a Backup to OneDrive

List directories in top level of your OneDrive

List all the files in your OneDrive

To copy a local directory to an OneDrive directory called backup

To copy a network directory to an OneDrive directory called network

To mount your OneDrive directory using fusemount into your home directory


Note that OneDrive is case insensitive so you can’t have a file called “Hello.doc” and one called “hello.doc”.

There are quite a few characters that can’t be in OneDrive file names. These can’t occur on Windows platforms, but on non-Windows platforms they are common. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a ? in it will be mapped to ? instead.

The largest allowed file size is 15GiB (16,106,127,360 bytes) as of 4 Jan 2019.