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