Data transfer with rclone to Onedrive

Data transfer with rclone to Onedrive

Assuming you have a Microsoft Onedrive and an ULCN login.

And have rclone available. On ALICE it can be loaded as a module with

module load rclone

Alternatively you can install a newer version from https://rclone.org/ in your home directory (~/bin).

Step 1 configure rclone

rclone config

You will be presented with a dialog.
Enter “n” for Create a New remote

Now you have to enter the name of the remote. You can enter any name here that matches the cloud service so that it is easy to identify. I am using ‘OD‘.

After entering the name and hitting enter, you will see a list of cloud services like Google cloud storage, Box, One Drive and others.

Enter the number of the service you want to use. In this case, it’s Microsoft ‘One Drive’. Make sure to use the correct number.

Screenshot 2025-08-20 163034.png

The next to Options can be left blank:
Option client_id,
Option client_secret.

Region: choose the default (global) region.
Skip the “Edit advanced config”

Edit advanced config? y) Yes n) No (default) y/n> Use 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 access If not sure try Y. If Y failed, try N. y) Yes (default) n) No y/n> n Option config_token. For this to work, you will need rclone available on a machine that has a web browser available. For more help and alternate methods see: https://rclone.org/remote_setup/ Execute the following on the machine with the web browser (same rclone version recommended): rclone authorize "onedrive" Then paste the result. 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> 1 Option config_driveid. Select drive you want to use Choose a number from below, or type in your own value of type string. 1 / PersonalCacheLibrary (business) 2 / OneDrive (business) config_driveid> 2 Drive OK? Found drive "root" of type "business" URL: https://leidenuniv1-my.sharepoint.com/personal/... y) Yes (default) n) No y/n> y Configuration complete. The configuration will be saved at “~/.config/rclone/rclone.conf”