This guide demonstrates connecting to cloud storage using RCLONE.

Connecting to cloud storage with RCLONE is possible on MAC, Linux and Windows.

Detailed documentation for RCLONE here.

Installing RCLONE

Linux CentOS/RHEL

yum install -y rclone

Linux Ubuntu/Debian

apt install -y rclone

Windows

https://rclone.org/install/#windows

Setting up a connection to cloud storage

First we need to open the configuration wizard with the command:

rclone config

Then in the configuration wizard, create a new remote endpoint:

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter the name of your endpoint:

name> myowncloud

Choose type of storage:

Type of storage to configure.
Choose a number from below, or type in your own value
..
37 / Webdav
   \ "webdav"
..
Storage> webdav

Enter the URL of the cloud storage server:

** See help for webdav backend at: https://rclone.org/webdav/ **

URL of http host to connect to
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / Connect to example.com
   \ "https://example.com"
url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/

Enter the webdav service type:

Name of the Webdav site/service/software you are using
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / Nextcloud
   \ "nextcloud"
 2 / Owncloud
   \ "owncloud"
 3 / Sharepoint Online, authenticated by Microsoft account.
   \ "sharepoint"
 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises.
   \ "sharepoint-ntlm"
 5 / Other site/service or software
   \ "other"
vendor> owncloud

Enter your login name:

User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a string value. Press Enter for the default ("").
user> <YOUR_USERNAME>

Enter your password:

Password.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Bearer token instead of user/pass (e.g. a Macaroon)
Enter a string value. Press Enter for the default ("").
bearer_token>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n

Confirm the configuration summary:

Remote config
--------------------
[myowncloud]
type = webdav
url = https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
vendor = owncloud
user = <YOUR_USERNAME>
pass = *** ENCRYPTED ***
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y

With everything configured, your rclone configuration should look like this:

Current remotes:

Name                 Type
====                 ====
myowncloud           webdav

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> q

Transfer files and folders

Copying folders to cloud storage

rclone copy --progress /backup myowncloud:/backup

Copying folders from cloud storage

rclone copy --progress myowncloud:/backup /backup

Copy files to cloud storage

rclone copy --progress /myfile.tar myowncloud:/backup

Copy files from cloud storage

rclone copy --progress myowncloud:/backup/myfile.tar myfile.tar

Moving files and folders within cloud storage

Move one file

rclone moveto --progress myowncloud:/myfile.zip myowncloud:/newlocation/myfile.zip

Move a folder

rclone move --progress myowncloud:/folder/ myowncloud:/newlocation/folder/

Checksum

File checksum

rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar

Checksum of the files in the folder

rclone copy --progress myowncloud:/backup /backup


  • No labels