Changes for page Přenos souborů pomocí RCLONE
Last modified by Jan LOŠŤÁK on 2023/03/23 14:00
From version 13.1
edited by Jan LOŠŤÁK
on 2023/03/23 14:00
on 2023/03/23 14:00
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,62 +1,40 @@ 1 -Tento návod demonstruje připojení do cloudového uložiště pomocí programu RCLONE. 1 +{{content syntax="markdown/1.2"}} 2 +# Using rclone to copy files in ownCloud 2 2 3 - Připojenídocloudovéhouložištěpomocí **RCLONE**jemožnéna**MAC,Linuxa Windows**.4 +In this example you will find how to copy large files or folders to or from your owncloud account. 4 4 5 -Podrobná dokumentace k RCLONE [[zde>>url:https://rclone.org/docs/||shape="rect"]]. 6 +## Install rclone 7 +```sh 8 +yum install -y rclone 9 +``` 6 6 7 -== {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE == 11 +## Create ownCloud config 12 +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="language-sh" %){{code language="none"}}apt install -y rclone{{/code}} 20 - 21 -==== {{id name="PřenossouborůpomocíRCLONE-Windows"/}}Windows ==== 22 - 23 -[[https:~~/~~/rclone.org/install/#windows>>url:https://rclone.org/install/#windows||shape="rect"]] 24 - 25 -== {{id name="PřenossouborůpomocíRCLONE-Nastavenípřipojenídocloudovéhouložiště"/}}Nastavení připojení do cloudového uložiště == 26 - 27 -(% class="tw-data-text tw-text-large tw-ta" %) 28 -=== {{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:(%%) === 29 - 30 -(% class="code" %) 31 -((( 14 +```sh 32 32 rclone config 33 - )))16 +``` 34 34 35 - ==={{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: 36 36 37 -(% class="code" %) 38 -((( 39 -(% class="language-sh" %){{code language="none"}}No remotes found - make a new one 20 +```sh 21 +No remotes found - make a new one 40 40 n) New remote 41 41 s) Set configuration password 42 42 q) Quit config 43 43 n/s/q> n 44 -{{/code}} 45 -))) 26 +``` 46 46 47 - === {{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: 48 48 49 -(% class="code" %) 50 -((( 51 -(% class="language-sh" %){{code language="none"}}name> myowncloud 52 -{{/code}} 53 -))) 30 +```sh 31 +name> myowncloud 32 +``` 54 54 55 55 Choose type of storage: 56 56 57 -(% class="code" %) 58 -((( 59 -(% class="language-sh" %){{code language="none"}}Type of storage to configure. 36 +```sh 37 +Type of storage to configure. 60 60 Choose a number from below, or type in your own value 61 61 .. 62 62 37 / Webdav ... ... @@ -63,15 +63,12 @@ 63 63 \ "webdav" 64 64 .. 65 65 Storage> webdav 66 -{{/code}} 67 -))) 44 +``` 68 68 69 -(% class="tw-data-text tw-text-large tw-ta" %) 70 -=== {{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: 71 71 72 -(% class="code" %) 73 -((( 74 -(% 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/ ** 75 75 76 76 URL of http host to connect to 77 77 Enter a string value. Press Enter for the default (""). ... ... @@ -78,15 +78,13 @@ 78 78 Choose a number from below, or type in your own value 79 79 1 / Connect to example.com 80 80 \ "https://example.com" 81 -url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ 82 -{{/code}} 83 -))) 56 +url> https://privatecloud.imtm.cz/remote.php/dav/ 57 +``` 84 84 85 - === {{id name="PřenossouborůpomocíRCLONE-Zadejtetypslužbywebdav:"/}}**Zadejte typslužby webdav:** ===59 +Enter webdav service type: 86 86 87 -(% class="code" %) 88 -((( 89 -(% 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 90 90 Enter a string value. Press Enter for the default (""). 91 91 Choose a number from below, or type in your own value 92 92 1 / Nextcloud ... ... @@ -100,24 +100,20 @@ 100 100 5 / Other site/service or software 101 101 \ "other" 102 102 vendor> owncloud 103 -{{/code}} 104 -))) 76 +``` 105 105 106 - === {{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: 107 107 108 -(% class="code" %) 109 -((( 110 -(% 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'. 111 111 Enter a string value. Press Enter for the default (""). 112 112 user> <YOUR_USERNAME> 113 -{{/code}} 114 -))) 84 +``` 115 115 116 - === {{idname="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(%style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** ===86 +Enter your password: 117 117 118 -(% class="code" %) 119 -((( 120 -(% class="language-sh" %){{code language="none"}}Password. 88 +```sh 89 +Password. 121 121 y) Yes type in my own password 122 122 g) Generate random password 123 123 n) No leave this optional password blank (default) ... ... @@ -133,14 +133,12 @@ 133 133 y) Yes 134 134 n) No (default) 135 135 y/n> n 136 -{{/code}} 137 -))) 105 +``` 138 138 139 - === {{id name="PřenossouborůpomocíRCLONE-Potvrďteshrnutíkonfigurace:"/}}(%style="color: rgb(32,33,36);" %)**Potvrďte shrnutí konfigurace**(%%)**:** ===107 +Confirm config summary: 140 140 141 -(% class="code" %) 142 -((( 143 -(% class="language-sh" %){{code language="none"}}Remote config 109 +```sh 110 +Remote config 144 144 -------------------- 145 145 [myowncloud] 146 146 type = webdav ... ... @@ -153,14 +153,12 @@ 153 153 e) Edit this remote 154 154 d) Delete this remote 155 155 y/e/d> y 156 -{{/code}} 157 -))) 123 +``` 158 158 159 - ==={{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: 160 160 161 -(% class="code" %) 162 -((( 163 -(% class="language-sh" %){{code language="none"}}Current remotes: 127 +```sh 128 +Current remotes: 164 164 165 165 Name Type 166 166 ==== ==== ... ... @@ -174,72 +174,27 @@ 174 174 s) Set configuration password 175 175 q) Quit config 176 176 e/n/d/r/c/s/q> q 177 -{{/code}} 178 -))) 142 +``` 179 179 180 - =={{id name="PřenossouborůpomocíRCLONE-Přenossouborůasložek"/}}Přenossouborů a složek ==144 +# Copying files 181 181 182 -=== {{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 +``` 183 183 184 -(% class="code" %) 185 -((( 186 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup 187 -{{/code}} 188 -))) 151 +## Copy file to ownCloud 152 +```sh 153 +rclone copy --progress /myfile.tar myowncloud:/backup 154 +``` 189 189 190 -=== {{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 +``` 191 191 192 -(% class="code" %) 193 -((( 194 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup{{/code}} 195 -))) 196 - 197 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísouborůdocloudovéhouložiště"/}}Kopírování souborů do cloudového uložiště === 198 - 199 -(% class="code" %) 200 -((( 201 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup 202 -{{/code}} 203 -))) 204 - 205 -=== {{id name="PřenossouborůpomocíRCLONE-Kopírovánísouborůzcloudovéhouložiště"/}}Kopírování souborů z cloudového uložiště === 206 - 207 -(% class="language-sh" %)##rclone copy ~-~-progress [[myowncloud:/backup/myfile.tar>>url:http://myowncloud/backup/myfile.tar||shape="rect"]] myfile.tar## 208 - 209 -== {{id name="PřenossouborůpomocíRCLONE-Přesouvánísouborůasložekvrámcicloudovéhouložiště"/}}Přesouvání souborů a složek v rámci cloudového uložiště == 210 - 211 -=== {{id name="PřenossouborůpomocíRCLONE-Přesunutíjednohosouboru"/}}Přesunutí jednoho souboru === 212 - 213 -(% class="code" %) 214 -((( 215 -(% class="language-sh" %)##rclone moveto ~-~-progress [[myowncloud:>>url:http://myowncloud/backup/myfile.tar||shape="rect"]]/myfile.zip [[myowncloud:/newlocation/>>url:http://myowncloud/newlocation/folder/||shape="rect"]]myfile.zip## 216 -))) 217 - 218 -=== {{id name="PřenossouborůpomocíRCLONE-Přesunutísložky"/}}Přesunutí složky === 219 - 220 -(% class="language-sh" %)##rclone move ~-~-progress [[myowncloud:>>url:http://myowncloud/backup/myfile.tar||shape="rect"]]/folder/ myowncloud:/newlocation/folder/## 221 - 222 -== {{id name="PřenossouborůpomocíRCLONE-Kontrolnísoučet"/}}Kontrolní součet == 223 - 224 -=== {{id name="PřenossouborůpomocíRCLONE-Kontrolnísoučetsouboru"/}}Kontrolní součet souboru === 225 - 226 -(% class="code" %) 227 -((( 228 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar 229 -{{/code}} 230 -))) 231 - 232 -=== {{id name="PřenossouborůpomocíRCLONE-Kontrolnísoučetsložky"/}}Kontrolní součet složky === 233 - 234 -(% class="code" %) 235 -((( 236 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup 237 -{{/code}} 238 -))) 239 - 240 -(% class="code" %) 241 -((( 242 -\\ 243 -))) 244 - 245 -\\ 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 -740558 541 +74055862 - Title
-
... ... @@ -1,1 +1,1 @@ 1 - PřenossouborůpomocíRCLONE1 +Using rclone to copy files in ownCloud