In this example you will find how to copy large files or folders to or from your owncloud account.
Install rclone
yum install -y rclone
Create ownCloud config
First we need open configuration wizard:
rclone config
Then in configuration wizard create 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 ownCloud 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 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 username:
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 config 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
If everything is configured your rclone config mneu 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
Copying files
Copy directory to ownCloud
rclone copy --progress /backup myowncloud:/backup
Copy file to ownCloud
rclone copy --progress /myfile.tar myowncloud:/backup
Copy directory from ownCloud
rclone copy --progress myowncloud:/backup /backup
Copy file from ownCloud
rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar