Articles on: Servers

Rclone: interacting with your Leviia Drive

Rclone is a powerful cloud management tool. It is available on most systems, yet is a mature and reliable tool. Among other things, it lets you synchronize, transfer and mount files in a file system.

It's a tool commonly used for scripting, or simply when you want a single application to manage several clouds.

To install Rclone on your system, visit https://rclone.org/downloads/.

Configuring Rclone :

Once installed, enter rclone config to begin configuration. Here are the parameters :

$ rclone config

n  (New remote)
name :  Leviia
Storage : 46 (Webdav)
url :https://cloud.leviia.com/remote.php/dav/files/VOTRE_IDENTIFIANT_LEVIIA/
vendor : 1 (Nextcloud)
user : VOTRE_IDENTIFIANT_LEVIIA
y) Yes type in my own password
password : VOTRE_MOT_DE_PASSE_D_APPLICATION_LEVIIA
Edit advanced config? : n) No


Procedure to recover your application password here

Your configuration file should look like this :

[Leviia]
type = webdav
url =https://cloud.leviia.com/remote.php/dav/files/YOUR_ID_LEVIIA/
vendor = other
user =  YOUR_ID_LEVIIA
pass = *** ENCRYPTED ***


List data:

Check the connection with the command rclone ls name_of_your_remote: ( in our case Leviia ) :

$ rclone ls Leviia:

   593508 Birdie.jpg
   457744 Frog.jpg
   474653 Gorilla.jpg
    77404 Leviia_green.jpg
    37513 Leviia_grey.jpg
  2170375 Library - Copie.jpg
  2170375 Library.jpg


You can find all Rclone documentation, such as synchronization, copying, mounting etc., on this page: https://rclone.org/docs/.

To use Rclone as a graphical interface, type rclone rcd --rc-web-gui.

Transfer data :

Go to the folder whose contents are to be transferred, then use the following command :

rclone sync . [name_of_your_remote]:/[name_of_your_drive_directory] --verbose --progress


In our case, we create a folder called "Documents" on our drive:

rclone sync . Leviia:/Documents --verbose --progress


In this way, all the contents of the directory we're in will be transferred to our drive's "Documents" directory.

Updated on: 05/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!