Configuring Rclone for Surfdrive and Researchdrive
Rclone has an interactive menu to generate a config file for you. You need to complete this menu once for each storage platform that you want to connect to. You can use Rclone for many different types of storage platforms: check the homepage for a list. SURFdrive and Research drive are based on Nextcloud software. Platforms built on standard protocols such as WebDAV (including Yoda, Data Archive or the U: network drive of UU student and employees) are also supported but require slightly different configuration steps. To transfer data from Yoda, iBridges or iCommands are recommended.
To check whether Rclone is available on your system:
rclone versionYou should see a version number displayed in the terminal.
The steps below describe how to set up rclone for Surfdrive. The steps for setting up rclone for Researchdrive are similar.
To start the interactive menu:
rclone configYou will see a list of options and current remotes (if any). For SURFdrive you need the following information (for Rclone version 1.73.1):
Type
nfor New remoteYou can choose a name for your remote e.g.
surfdrive(or SD)After choosing your remote name, you will be prompted to choose a storage type. Select the option for WebDAV (
62for Rclone version 1.73.1. However, depending on your Rclone version this number may be different!)You will be asked to fill in the URL. You can look this up via the web portal of SURFdrive.
- In the top right corner click on your account name. Go to settings.
- In the left panel, click security. Here, you can find your the url to access your files via WebDAv. It should be something like https://surfdrive.surf.nl/files/remote.php/nonshib-webdav.
Before you continue with the Rclone config menu in your workspace terminal, first perform the following step via the web portal of SURFdrive.
- Fill in an app name (e.g. lisa) on the security settings page (same page as previous step) and click
create new app password. - This will show a username and a password. You will need these in the following steps of the Rclone menu. Make sure to copy the password and save it somewhere, you will not be able to access it again after closing the pop-up!
- Fill in an app name (e.g. lisa) on the security settings page (same page as previous step) and click
Back in your terminal, enter the url from step 4.
Select the type of WebDAV storage system. Type:
2for Nextcloud.Type in your user name from SURFdrive (this is the username found in the web portal (step 5))
You will be prompted for a password. Enter
yto select y) Yes type in my own passwordType in your password from the web portal and type it in again for confirmation (Note that you will not see the password when you type it in, this is normal!)
Skip the Bearer token option by pressing
Enter.Choose
nto skip the advanced configYou will see a Configuration Complete text. Confirm your settings by typing
y. You will see a message that the new remote has been added.Finally, choose
qto quit the menu.
Test whether everything is setup correctly by typing the following command in the terminal, if necessary change surfdrive: to any other name chosen in step 2.
rclone lsd surfdrive:If everything is setup correctly, you should see a list of files and folders that are present on your SURFdrive.