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 7.1
edited by Jan LOŠŤÁK
on 2022/11/11 16:58
on 2022/11/11 16:58
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 - Content
-
... ... @@ -1,80 +1,38 @@ 1 - (%style=""%)2 - Tento návoddemonstrujepřipojenídocloudovéhouložištěpomocíprogramuRCLONE.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. 3 3 4 -(% style="" %) 5 -Připojení do cloudového uložiště pomocí **RCLONE **je možné na **MAC, Linux a Windows**. 4 +## Install rclone 5 +```sh 6 +yum install -y rclone 7 +``` 6 6 7 -== {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE == 9 +## Create ownCloud config 10 +First we need open configuration wizard: 8 8 9 -==== {{id name="PřenossouborůpomocíRCLONE-LinuxCentOS/RHEL"/}}Linux CentOS/RHEL ==== 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 -((( 12 +```sh 50 50 rclone config 51 - )))14 +``` 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(%%)**:** ===16 +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 18 +```sh 19 +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 -))) 24 +``` 64 64 65 - === {{idname="PřenossouborůpomocíRCLONE-Zadejtenázevvašehokoncovéhobodu:"/}}(%style="color:rgb(32,33,36);" %)**Zadejtenázev vašehokoncového bodu**(%%)**:** ===26 +Enter the name of your endpoint: 66 66 67 -(% class="code" %) 68 -((( 69 -(% class="language-sh" %){{code language="none"}}name> myowncloud 70 -{{/code}} 71 -))) 28 +```sh 29 +name> myowncloud 30 +``` 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. 34 +```sh 35 +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 -))) 42 +``` 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ě:(%%) === 44 +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/ ** 46 +```sh 47 +** 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 (""). ... ... @@ -97,14 +97,12 @@ 97 97 1 / Connect to example.com 98 98 \ "https://example.com" 99 99 url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ 100 -{{/code}} 101 -))) 55 +``` 102 102 103 - === {{id name="PřenossouborůpomocíRCLONE-Zadejtetypslužbywebdav:"/}}**Zadejte typslužby webdav:** ===57 +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 59 +```sh 60 +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 -))) 74 +``` 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**(%%)**:** ===76 +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'. 78 +```sh 79 +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 -))) 82 +``` 133 133 134 - === {{idname="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(%style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** ===84 +Enter your password: 135 135 136 -(% class="code" %) 137 -((( 138 -(% class="language-sh" %){{code language="none"}}Password. 86 +```sh 87 +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 -))) 103 +``` 156 156 157 - === {{id name="PřenossouborůpomocíRCLONE-Potvrďteshrnutíkonfigurace:"/}}(%style="color: rgb(32,33,36);" %)**Potvrďte shrnutí konfigurace**(%%)**:** ===105 +Confirm config summary: 158 158 159 -(% class="code" %) 160 -((( 161 -(% class="language-sh" %){{code language="none"}}Remote config 107 +```sh 108 +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 -))) 121 +``` 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**(%%)**:** ===123 +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: 125 +```sh 126 +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 -))) 140 +``` 197 197 198 - =={{id name="PřenossouborůpomocíRCLONE-Přenossouborůasložek"/}}Přenossouborů a složek ==142 +# 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ě === 144 +## Copy directory to ownCloud 145 +```sh 146 +rclone copy --progress --transfers 16 /backup myowncloud:/backup 147 +``` 201 201 202 -(% class="code" %) 203 -((( 204 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup 205 -{{/code}} 206 -))) 149 +## Copy file to ownCloud 150 +```sh 151 +rclone copy --progress --transfers 16 /myfile.tar myowncloud:/backup 152 +``` 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ě === 154 +## Copy directory from ownCloud 155 +```sh 156 +rclone copy --progress --transfers 16 myowncloud:/backup /backup 157 +``` 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 -))) 159 +## Copy file from ownCloud 160 +```sh 161 +rclone copy --progress --transfers 16 myowncloud:/backup/myfile.tar /myfile.tar 162 +``` 163 +{{/content}}
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -95617 2521 +95617090 - Title
-
... ... @@ -1,1 +1,1 @@ 1 - PřenossouborůpomocíRCLONE1 +Using rclone to copy files