Changes for page Přenos souborů pomocí RCLONE
Last modified by Jan LOŠŤÁK on 2023/03/23 14:00
From version 11.1
edited by Jan LOŠŤÁK
on 2023/03/22 14:34
on 2023/03/22 14:34
Change comment:
There is no comment for this version
To version 3.1
edited by Jan LOŠŤÁK
on 2022/06/01 18:18
on 2022/06/01 18:18
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - PřenossouborůpomocíRCLONE1 +Using rclone to copy files in ownCloud - Content
-
... ... @@ -1,80 +1,40 @@ 1 - (%style=""%)2 - Tentonávoddemonstrujepřipojenídocloudovéhouložištěpomocí programuRCLONE.1 +{{content syntax="markdown/1.2"}} 2 +# Using rclone to copy files in ownCloud 3 3 4 -(% style="" %) 5 -Připojení do cloudového uložiště pomocí **RCLONE **je možné na **MAC, Linux a Windows**. 4 +In this example you will find how to copy large files or folders to or from your owncloud account. 6 6 7 -== {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE == 6 +## Install rclone 7 +```sh 8 +yum install -y rclone 9 +``` 8 8 9 -==== {{id name="PřenossouborůpomocíRCLONE-LinuxCentOS/RHEL"/}}Linux CentOS/RHEL ==== 11 +## Create ownCloud config 12 +First we need open configuration wizard: 10 10 11 -(% class="code" %) 12 -((( 13 -(% class="language-sh" %){{code language="none"}}yum install -y rclone 14 -{{/code}} 15 -))) 16 - 17 -==== {{id name="PřenossouborůpomocíRCLONE-LinuxUbuntu/Debian"/}}Linux Ubuntu/Debian ==== 18 - 19 -(% class="code" %) 20 -((( 21 -\\ 22 -))) 23 - 24 -(% class="language-sh" %){{code language="none"}}apt install -y rclone{{/code}} 25 - 26 -\\ 27 - 28 -==== {{id name="PřenossouborůpomocíRCLONE-Windows"/}}Windows ==== 29 - 30 -\\ 31 - 32 -\\ 33 - 34 -[[https:~~/~~/rclone.org/install/#windows>>url:https://rclone.org/install/#windows||shape="rect"]] 35 - 36 -\\ 37 - 38 -(% class="code" %) 39 -((( 40 -\\ 41 -))) 42 - 43 -== {{id name="PřenossouborůpomocíRCLONE-Nastavenípřipojenídocloudovéhouložiště"/}}Nastavení připojení do cloudového uložiště == 44 - 45 -(% class="tw-data-text tw-text-large tw-ta" %) 46 -=== {{id name="PřenossouborůpomocíRCLONE-Nejprvepotřebujemeotevřítprůvodcekonfiguracípřikazem:"/}}(% class="Y2IQFc" lang="cs" %)Nejprve potřebujeme otevřít průvodce konfigurací přikazem:(%%) === 47 - 48 -(% class="code" %) 49 -((( 14 +```sh 50 50 rclone config 51 - )))16 +``` 52 52 53 - ==={{idname="PřenossouborůpomocíRCLONE-Potévprůvodcikonfiguracívytvořtenovývzdálenýkoncovýbod:"/}}(%style="color: rgb(32,33,36);" %)Potévprůvodci konfigurací vytvořtenový vzdálený koncový bod(%%)**:** ===18 +Then in configuration wizard create new remote endpoint: 54 54 55 -(% class="code" %) 56 -((( 57 -(% class="language-sh" %){{code language="none"}}No remotes found - make a new one 20 +```sh 21 +No remotes found - make a new one 58 58 n) New remote 59 59 s) Set configuration password 60 60 q) Quit config 61 61 n/s/q> n 62 -{{/code}} 63 -))) 26 +``` 64 64 65 - === {{idname="PřenossouborůpomocíRCLONE-Zadejtenázevvašehokoncovéhobodu:"/}}(%style="color:rgb(32,33,36);" %)**Zadejtenázev vašehokoncového bodu**(%%)**:** ===28 +Enter the name of your endpoint: 66 66 67 -(% class="code" %) 68 -((( 69 -(% class="language-sh" %){{code language="none"}}name> myowncloud 70 -{{/code}} 71 -))) 30 +```sh 31 +name> myowncloud 32 +``` 72 72 73 73 Choose type of storage: 74 74 75 -(% class="code" %) 76 -((( 77 -(% class="language-sh" %){{code language="none"}}Type of storage to configure. 36 +```sh 37 +Type of storage to configure. 78 78 Choose a number from below, or type in your own value 79 79 .. 80 80 37 / Webdav ... ... @@ -81,15 +81,12 @@ 81 81 \ "webdav" 82 82 .. 83 83 Storage> webdav 84 -{{/code}} 85 -))) 44 +``` 86 86 87 -(% class="tw-data-text tw-text-large tw-ta" %) 88 -=== {{id name="PřenossouborůpomocíRCLONE-ZadejteadresuURLserverucloudovéhouložiště:"/}}(% class="Y2IQFc" lang="cs" %)Zadejte adresu URL serveru cloudového uložiště:(%%) === 46 +Enter the URL of ownCloud server: 89 89 90 -(% class="code" %) 91 -((( 92 -(% class="language-sh" %){{code language="none"}}** See help for webdav backend at: https://rclone.org/webdav/ ** 48 +```sh 49 +** See help for webdav backend at: https://rclone.org/webdav/ ** 93 93 94 94 URL of http host to connect to 95 95 Enter a string value. Press Enter for the default (""). ... ... @@ -96,15 +96,13 @@ 96 96 Choose a number from below, or type in your own value 97 97 1 / Connect to example.com 98 98 \ "https://example.com" 99 -url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ 100 -{{/code}} 101 -))) 56 +url> https://privatecloud.imtm.cz/remote.php/dav/ 57 +``` 102 102 103 - === {{id name="PřenossouborůpomocíRCLONE-Zadejtetypslužbywebdav:"/}}**Zadejte typslužby webdav:** ===59 +Enter webdav service type: 104 104 105 -(% class="code" %) 106 -((( 107 -(% class="language-sh" %){{code language="none"}}Name of the Webdav site/service/software you are using 61 +```sh 62 +Name of the Webdav site/service/software you are using 108 108 Enter a string value. Press Enter for the default (""). 109 109 Choose a number from below, or type in your own value 110 110 1 / Nextcloud ... ... @@ -118,24 +118,20 @@ 118 118 5 / Other site/service or software 119 119 \ "other" 120 120 vendor> owncloud 121 -{{/code}} 122 -))) 76 +``` 123 123 124 - === {{id name="PřenossouborůpomocíRCLONE-Vložtesvojepřihlašovacíjméno:"/}}(%style="color:rgb(32,33,36);" %)**Vložtesvojepřihlašovací jméno**(%%)**:** ===78 +Enter your username: 125 125 126 -(% class="code" %) 127 -((( 128 -(% class="language-sh" %){{code language="none"}}User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'. 80 +```sh 81 +User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'. 129 129 Enter a string value. Press Enter for the default (""). 130 130 user> <YOUR_USERNAME> 131 -{{/code}} 132 -))) 84 +``` 133 133 134 - === {{idname="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(%style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** ===86 +Enter your password: 135 135 136 -(% class="code" %) 137 -((( 138 -(% class="language-sh" %){{code language="none"}}Password. 88 +```sh 89 +Password. 139 139 y) Yes type in my own password 140 140 g) Generate random password 141 141 n) No leave this optional password blank (default) ... ... @@ -151,14 +151,12 @@ 151 151 y) Yes 152 152 n) No (default) 153 153 y/n> n 154 -{{/code}} 155 -))) 105 +``` 156 156 157 - === {{id name="PřenossouborůpomocíRCLONE-Potvrďteshrnutíkonfigurace:"/}}(%style="color: rgb(32,33,36);" %)**Potvrďte shrnutí konfigurace**(%%)**:** ===107 +Confirm config summary: 158 158 159 -(% class="code" %) 160 -((( 161 -(% class="language-sh" %){{code language="none"}}Remote config 109 +```sh 110 +Remote config 162 162 -------------------- 163 163 [myowncloud] 164 164 type = webdav ... ... @@ -171,14 +171,12 @@ 171 171 e) Edit this remote 172 172 d) Delete this remote 173 173 y/e/d> y 174 -{{/code}} 175 -))) 123 +``` 176 176 177 - ==={{id name="PřenossouborůpomocíRCLONE-Pokudjevšenakonfigurováno,vašekonfiguracerclonebymělavypadattakto:"/}}(%style="color: rgb(32,33,36);" %)**Pokud je všenakonfigurováno,vašekonfiguracercloneby mělavypadattakto**(%%)**:** ===125 +If everything is configured your rclone config mneu should look like this: 178 178 179 -(% class="code" %) 180 -((( 181 -(% class="language-sh" %){{code language="none"}}Current remotes: 127 +```sh 128 +Current remotes: 182 182 183 183 Name Type 184 184 ==== ==== ... ... @@ -192,56 +192,27 @@ 192 192 s) Set configuration password 193 193 q) Quit config 194 194 e/n/d/r/c/s/q> q 195 -{{/code}} 196 -))) 142 +``` 197 197 198 - =={{id name="PřenossouborůpomocíRCLONE-Přenossouborůasložek"/}}Přenossouborů a složek ==144 +# Copying files 199 199 200 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísložekdocloudovéhouložiště"/}}Kopírování složek do cloudového uložiště === 146 +## Copy directory to ownCloud 147 +```sh 148 +rclone copy --progress /backup myowncloud:/backup 149 +``` 201 201 202 -(% class="code" %) 203 -((( 204 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup 205 -{{/code}} 206 -))) 151 +## Copy file to ownCloud 152 +```sh 153 +rclone copy --progress /myfile.tar myowncloud:/backup 154 +``` 207 207 208 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísložekzcloudovéhouložiště"/}}Kopírování složek z cloudového uložiště === 156 +## Copy directory from ownCloud 157 +```sh 158 +rclone copy --progress myowncloud:/backup /backup 159 +``` 209 209 210 -(% class="code" %) 211 -((( 212 -\\ 213 -))) 214 - 215 -(% class="code" %) 216 -((( 217 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup{{/code}} 218 -))) 219 - 220 -(% class="code" %) 221 -((( 222 -\\ 223 -))) 224 - 225 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísouborůdocloudovéhouložiště"/}}Kopírování souborů do cloudového uložiště === 226 - 227 -(% class="code" %) 228 -((( 229 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup 230 -{{/code}} 231 -))) 232 - 233 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísouborůzcloudovéhouložiště"/}}Kopírování souborů z cloudového uložiště === 234 - 235 -(% class="code" %) 236 -((( 237 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup 238 -{{/code}} 239 -))) 240 - 241 -== {{id name="PřenossouborůpomocíRCLONE-CopyfilefromownCloud"/}}Copy file from ownCloud == 242 - 243 -(% class="code" %) 244 -((( 245 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar 246 -{{/code}} 247 -))) 161 +## Copy file from ownCloud 162 +```sh 163 +rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar 164 +``` 165 +{{/content}}
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 956172521 +74055862 - Title
-
... ... @@ -1,1 +1,1 @@ 1 - PřenossouborůpomocíRCLONE1 +Using rclone to copy files in ownCloud