Changes for page Přenos souborů pomocí RCLONE
Last modified by Jan LOŠŤÁK on 2023/03/23 14:00
From version 2.1
edited by Jan LOŠŤÁK
on 2022/06/01 18:13
on 2022/06/01 18:13
Change comment:
There is no comment for this version
To version 4.1
edited by Jan LOŠŤÁK
on 2022/06/01 18:19
on 2022/06/01 18:19
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,132 +1,171 @@ 1 -(% style="color: rgb(0,0,0);" %)In this example you will find how to copy large files or folders to or from your owncloud account. 1 +{{content syntax="markdown/1.2"}} 2 +In this example you will find how to copy large files or folders to or from your owncloud account. 2 2 3 -== {{id name="PřenossouborůpomocíRCLONE-Installrclone"/}}(% style="color: rgb(128,0,0);" %)Install rclone(%%) == 4 +## Install rclone 5 +```sh 6 +yum install -y rclone 7 +``` 4 4 9 +## Create ownCloud config 10 +First we need open configuration wizard: 5 5 6 -\\\\(% style="color: rgb(128,0,0);" %)~#~# Create ownCloud config(%%) 7 -(% style="color: rgb(0,0,0);" %)First we need open configuration wizard:(%%) 8 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 9 -(% style="color: rgb(0,0,0);" %)rclone config(%%) 10 -(% style="color: rgb(0,0,0);" %)```(%%) 11 -\\(% style="color: rgb(0,0,0);" %)Then in configuration wizard create new remote endpoint:(%%) 12 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 13 -(% style="color: rgb(0,0,0);" %)No remotes found - make a new one(%%) 14 -(% style="color: rgb(0,0,0);" %)n) New remote(%%) 15 -(% style="color: rgb(0,0,0);" %)s) Set configuration password(%%) 16 -(% style="color: rgb(0,0,0);" %)q) Quit config(%%) 17 -(% style="color: rgb(0,0,0);" %)n/s/q> n(%%) 18 -(% style="color: rgb(0,0,0);" %)```(%%) 19 -\\(% style="color: rgb(0,0,0);" %)Enter the name of your endpoint:(%%) 20 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 21 -(% style="color: rgb(0,0,0);" %)name> myowncloud(%%) 22 -(% style="color: rgb(0,0,0);" %)```(%%) 23 -\\(% style="color: rgb(0,0,0);" %)Choose type of storage:(%%) 24 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 25 -(% style="color: rgb(0,0,0);" %)Type of storage to configure.(%%) 26 -(% style="color: rgb(0,0,0);" %)Choose a number from below, or type (% style="color: rgb(0,0,255);" %)in(% style="color: rgb(0,0,0);" %) your own value(%%) 27 -(% style="color: rgb(0,0,0);" %)..(%%) 28 -(% style="color: rgb(0,0,0);" %)37 / Webdav(%%) 29 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"webdav"(%%) 30 -(% style="color: rgb(0,0,0);" %)..(%%) 31 -(% style="color: rgb(0,0,0);" %)Storage> webdav(%%) 32 -(% style="color: rgb(0,0,0);" %)```(%%) 33 -\\(% style="color: rgb(0,0,0);" %)Enter the URL of ownCloud server:(%%) 34 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 35 -(% style="color: rgb(0,0,0);" %)~*~* See help (% style="color: rgb(0,0,255);" %)for(% style="color: rgb(0,0,0);" %) webdav backend at: [[https:~~/~~/rclone.org/webdav/>>url:https://rclone.org/webdav/||shape="rect"]] ~*~*(%%) 36 -\\(% style="color: rgb(0,0,0);" %)URL of http host to connect to(%%) 37 -(% style="color: rgb(0,0,0);" %)Enter a string value. Press Enter (% style="color: rgb(0,0,255);" %)for(% style="color: rgb(0,0,0);" %) the default ((% style="color: rgb(163,21,21);" %)""(% style="color: rgb(0,0,0);" %)).(%%) 38 -(% style="color: rgb(0,0,0);" %)Choose a number from below, or type (% style="color: rgb(0,0,255);" %)in(% style="color: rgb(0,0,0);" %) your own value(%%) 39 -(% style="color: rgb(0,0,0);" %) 1 / Connect to [[example.com>>url:http://example.com||shape="rect"]](%%) 40 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"[[https:~~/~~/example.com>>url:https://example.com||shape="rect"]]"(%%) 41 -(% style="color: rgb(0,0,0);" %)url> [[https:~~/~~/privatecloud.imtm.cz/remote.php/dav/>>url:https://privatecloud.imtm.cz/remote.php/dav/||shape="rect"]](%%) 42 -(% style="color: rgb(0,0,0);" %)```(%%) 43 -\\(% style="color: rgb(0,0,0);" %)Enter webdav service type:(%%) 44 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 45 -(% style="color: rgb(0,0,0);" %)Name of the Webdav site/service/software you are using(%%) 46 -(% style="color: rgb(0,0,0);" %)Enter a string value. Press Enter (% style="color: rgb(0,0,255);" %)for(% style="color: rgb(0,0,0);" %) the default ((% style="color: rgb(163,21,21);" %)""(% style="color: rgb(0,0,0);" %)).(%%) 47 -(% style="color: rgb(0,0,0);" %)Choose a number from below, or type (% style="color: rgb(0,0,255);" %)in(% style="color: rgb(0,0,0);" %) your own value(%%) 48 -(% style="color: rgb(0,0,0);" %) 1 / Nextcloud(%%) 49 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"nextcloud"(%%) 50 -(% style="color: rgb(0,0,0);" %) 2 / Owncloud(%%) 51 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"owncloud"(%%) 52 -(% style="color: rgb(0,0,0);" %) 3 / Sharepoint Online, authenticated by Microsoft account.(%%) 53 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"sharepoint"(%%) 54 -(% style="color: rgb(0,0,0);" %) 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises.(%%) 55 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"sharepoint-ntlm"(%%) 56 -(% style="color: rgb(0,0,0);" %) 5 / Other site/service or software(%%) 57 -(% style="color: rgb(0,0,0);" %) \ (% style="color: rgb(163,21,21);" %)"other"(%%) 58 -(% style="color: rgb(0,0,0);" %)vendor> owncloud(%%) 59 -(% style="color: rgb(0,0,0);" %)```(%%) 60 -\\(% style="color: rgb(0,0,0);" %)Enter your username:(%%) 61 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 62 -(% style="color: rgb(0,0,0);" %)User name. In (% style="color: rgb(0,0,255);" %)case(% style="color: rgb(0,0,0);" %) NTLM authentication is used, the username should be (% style="color: rgb(0,0,255);" %)in(% style="color: rgb(0,0,0);" %) the format (% style="color: rgb(163,21,21);" %)'Domain\User'(% style="color: rgb(0,0,0);" %).(%%) 63 -(% style="color: rgb(0,0,0);" %)Enter a string value. Press Enter for the default ((% style="color: rgb(163,21,21);" %)""(% style="color: rgb(0,0,0);" %)).(%%) 64 -(% style="color: rgb(0,0,0);" %)user> <YOUR_USERNAME>(%%) 65 -(% style="color: rgb(0,0,0);" %)```(%%) 66 -\\(% style="color: rgb(0,0,0);" %)Enter your password:(%%) 67 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 68 -(% style="color: rgb(0,0,0);" %)Password.(%%) 69 -(% style="color: rgb(0,0,0);" %)y) Yes type (% style="color: rgb(0,0,255);" %)in(% style="color: rgb(0,0,0);" %) my own password(%%) 70 -(% style="color: rgb(0,0,0);" %)g) Generate random password(%%) 71 -(% style="color: rgb(0,0,0);" %)n) No leave this optional password blank (default)(%%) 72 -(% style="color: rgb(0,0,0);" %)y/g/n> y(%%) 73 -(% style="color: rgb(0,0,0);" %)Enter the password:(%%) 74 -(% style="color: rgb(0,0,0);" %)password:(%%) 75 -(% style="color: rgb(0,0,0);" %)Confirm the password:(%%) 76 -(% style="color: rgb(0,0,0);" %)password:(%%) 77 -(% style="color: rgb(0,0,0);" %)Bearer token instead of user/pass (e.g. a Macaroon)(%%) 78 -(% style="color: rgb(0,0,0);" %)Enter a string value. Press Enter (% style="color: rgb(0,0,255);" %)for(% style="color: rgb(0,0,0);" %) the default ((% style="color: rgb(163,21,21);" %)""(% style="color: rgb(0,0,0);" %)).(%%) 79 -(% style="color: rgb(0,0,0);" %)bearer_token>(%%) 80 -(% style="color: rgb(0,0,0);" %)Edit advanced config? (y/n)(%%) 81 -(% style="color: rgb(0,0,0);" %)y) Yes(%%) 82 -(% style="color: rgb(0,0,0);" %)n) No (default)(%%) 83 -(% style="color: rgb(0,0,0);" %)y/n> n(%%) 84 -(% style="color: rgb(0,0,0);" %)```(%%) 85 -\\(% style="color: rgb(0,0,0);" %)Confirm config summary:(%%) 86 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 87 -(% style="color: rgb(0,0,0);" %)Remote config(%%) 88 -(% style="color: rgb(0,0,0);" %)~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-(%%) 89 -(% style="color: rgb(0,0,0);" %)[myowncloud](%%) 90 -(% style="color: rgb(0,0,0);" %)type = webdav(%%) 91 -(% style="color: rgb(0,0,0);" %)url = https:~/~/privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/(%%) 92 -(% style="color: rgb(0,0,0);" %)vendor = owncloud(%%) 93 -(% style="color: rgb(0,0,0);" %)user = <YOUR_USERNAME>(%%) 94 -(% style="color: rgb(0,0,0);" %)pass = ~*~** ENCRYPTED ~*~**(%%) 95 -(% style="color: rgb(0,0,0);" %)~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-(%%) 96 -(% style="color: rgb(0,0,0);" %)y) Yes this is OK (default)(%%) 97 -(% style="color: rgb(0,0,0);" %)e) Edit this remote(%%) 98 -(% style="color: rgb(0,0,0);" %)d) Delete this remote(%%) 99 -(% style="color: rgb(0,0,0);" %)y/e/d> y(%%) 100 -(% style="color: rgb(0,0,0);" %)```(%%) 101 -\\(% style="color: rgb(0,0,0);" %)If everything is configured your rclone config mneu should look like this:(%%) 102 -\\(% style="color: rgb(0,0,0);" %)```sh(%%) 103 -(% style="color: rgb(0,0,0);" %)Current remotes:(%%) 104 -\\(% style="color: rgb(0,0,0);" %)Name Type(%%) 105 -(% style="color: rgb(0,0,0);" %)==== ====(%%) 106 -(% style="color: rgb(0,0,0);" %)myowncloud webdav(%%) 107 -\\(% style="color: rgb(0,0,0);" %)e) Edit existing remote(%%) 108 -(% style="color: rgb(0,0,0);" %)n) New remote(%%) 109 -(% style="color: rgb(0,0,0);" %)d) Delete remote(%%) 110 -(% style="color: rgb(0,0,0);" %)r) Rename remote(%%) 111 -(% style="color: rgb(0,0,0);" %)c) Copy remote(%%) 112 -(% style="color: rgb(0,0,0);" %)s) Set configuration password(%%) 113 -(% style="color: rgb(0,0,0);" %)q) Quit config(%%) 114 -(% style="color: rgb(0,0,0);" %)e/n/d/r/c/s/q> q(%%) 115 -(% style="color: rgb(0,0,0);" %)```(%%) 116 -\\(% style="color: rgb(128,0,0);" %)# Copying files(%%) 117 -\\(% style="color: rgb(128,0,0);" %)~#~# Copy directory to ownCloud(%%) 118 -(% style="color: rgb(0,0,0);" %)```sh(%%) 119 -(% style="color: rgb(0,0,0);" %)rclone copy ~-~-progress /backup [[myowncloud:/backup>>url:http://myowncloud/backup||shape="rect"]](%%) 120 -(% style="color: rgb(0,0,0);" %)```(%%) 121 -\\(% style="color: rgb(128,0,0);" %)~#~# Copy file to ownCloud(%%) 122 -(% style="color: rgb(0,0,0);" %)```sh(%%) 123 -(% style="color: rgb(0,0,0);" %)rclone copy ~-~-progress /myfile.tar [[myowncloud:/backup>>url:http://myowncloud/backup||shape="rect"]](%%) 124 -(% style="color: rgb(0,0,0);" %)```(%%) 125 -\\(% style="color: rgb(128,0,0);" %)~#~# Copy directory from ownCloud(%%) 126 -(% style="color: rgb(0,0,0);" %)```sh(%%) 127 -(% style="color: rgb(0,0,0);" %)rclone copy ~-~-progress [[myowncloud:/backup>>url:http://myowncloud/backup||shape="rect"]] /backup(%%) 128 -(% style="color: rgb(0,0,0);" %)```(%%) 129 -\\(% style="color: rgb(128,0,0);" %)~#~# Copy file from ownCloud(%%) 130 -(% style="color: rgb(0,0,0);" %)```sh(%%) 131 -(% style="color: rgb(0,0,0);" %)rclone copy ~-~-progress [[myowncloud:/backup/myfile.tar>>url:http://myowncloud/backup/myfile.tar||shape="rect"]] /myfile.tar(%%) 132 -(% style="color: rgb(0,0,0);" %)``` 12 +```sh 13 +rclone config 14 +``` 15 + 16 +Then in configuration wizard create new remote endpoint: 17 + 18 +```sh 19 +No remotes found - make a new one 20 +n) New remote 21 +s) Set configuration password 22 +q) Quit config 23 +n/s/q> n 24 +``` 25 + 26 +Enter the name of your endpoint: 27 + 28 +```sh 29 +name> myowncloud 30 +``` 31 + 32 +Choose type of storage: 33 + 34 +```sh 35 +Type of storage to configure. 36 +Choose a number from below, or type in your own value 37 +.. 38 +37 / Webdav 39 + \ "webdav" 40 +.. 41 +Storage> webdav 42 +``` 43 + 44 +Enter the URL of ownCloud server: 45 + 46 +```sh 47 +** See help for webdav backend at: https://rclone.org/webdav/ ** 48 + 49 +URL of http host to connect to 50 +Enter a string value. Press Enter for the default (""). 51 +Choose a number from below, or type in your own value 52 + 1 / Connect to example.com 53 + \ "https://example.com" 54 +url> https://privatecloud.imtm.cz/remote.php/dav/ 55 +``` 56 + 57 +Enter webdav service type: 58 + 59 +```sh 60 +Name of the Webdav site/service/software you are using 61 +Enter a string value. Press Enter for the default (""). 62 +Choose a number from below, or type in your own value 63 + 1 / Nextcloud 64 + \ "nextcloud" 65 + 2 / Owncloud 66 + \ "owncloud" 67 + 3 / Sharepoint Online, authenticated by Microsoft account. 68 + \ "sharepoint" 69 + 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises. 70 + \ "sharepoint-ntlm" 71 + 5 / Other site/service or software 72 + \ "other" 73 +vendor> owncloud 74 +``` 75 + 76 +Enter your username: 77 + 78 +```sh 79 +User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'. 80 +Enter a string value. Press Enter for the default (""). 81 +user> <YOUR_USERNAME> 82 +``` 83 + 84 +Enter your password: 85 + 86 +```sh 87 +Password. 88 +y) Yes type in my own password 89 +g) Generate random password 90 +n) No leave this optional password blank (default) 91 +y/g/n> y 92 +Enter the password: 93 +password: 94 +Confirm the password: 95 +password: 96 +Bearer token instead of user/pass (e.g. a Macaroon) 97 +Enter a string value. Press Enter for the default (""). 98 +bearer_token> 99 +Edit advanced config? (y/n) 100 +y) Yes 101 +n) No (default) 102 +y/n> n 103 +``` 104 + 105 +Confirm config summary: 106 + 107 +```sh 108 +Remote config 109 +-------------------- 110 +[myowncloud] 111 +type = webdav 112 +url = https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ 113 +vendor = owncloud 114 +user = <YOUR_USERNAME> 115 +pass = *** ENCRYPTED *** 116 +-------------------- 117 +y) Yes this is OK (default) 118 +e) Edit this remote 119 +d) Delete this remote 120 +y/e/d> y 121 +``` 122 + 123 +If everything is configured your rclone config mneu should look like this: 124 + 125 +```sh 126 +Current remotes: 127 + 128 +Name Type 129 +==== ==== 130 +myowncloud webdav 131 + 132 +e) Edit existing remote 133 +n) New remote 134 +d) Delete remote 135 +r) Rename remote 136 +c) Copy remote 137 +s) Set configuration password 138 +q) Quit config 139 +e/n/d/r/c/s/q> q 140 +``` 141 + 142 +# Copying files 143 + 144 +## Copy directory to ownCloud 145 +```sh 146 +rclone copy --progress /backup myowncloud:/backup 147 +``` 148 + 149 +## Copy file to ownCloud 150 +```sh 151 +rclone copy --progress /myfile.tar myowncloud:/backup 152 +``` 153 + 154 +## Copy directory from ownCloud 155 +```sh 156 +rclone copy --progress myowncloud:/backup /backup 157 +``` 158 + 159 +## Copy file from ownCloud 160 +```sh 161 +rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar 162 +``` 163 + 164 + 165 + 166 + 167 +{{/content}} 168 + 169 +\\ 170 + 171 +\\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -7405586 01 +74055867