Wiki source code of Přenos souborů pomocí RCLONE
Version 11.1 by Jan LOŠŤÁK on 2023/03/22 14:34
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
11.1 | 1 | (% style="" %) |
2 | Tento návod demonstruje připojení do cloudového uložiště pomocí programu RCLONE. | ||
![]() |
2.1 | 3 | |
![]() |
11.1 | 4 | (% style="" %) |
5 | Připojení do cloudového uložiště pomocí **RCLONE **je možné na **MAC, Linux a Windows**. | ||
![]() |
2.1 | 6 | |
![]() |
11.1 | 7 | == {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE == |
8 | |||
9 | ==== {{id name="PřenossouborůpomocíRCLONE-LinuxCentOS/RHEL"/}}Linux CentOS/RHEL ==== | ||
10 | |||
![]() |
8.1 | 11 | (% class="code" %) |
12 | ((( | ||
13 | (% class="language-sh" %){{code language="none"}}yum install -y rclone | ||
14 | {{/code}} | ||
15 | ))) | ||
16 | |||
![]() |
11.1 | 17 | ==== {{id name="PřenossouborůpomocíRCLONE-LinuxUbuntu/Debian"/}}Linux Ubuntu/Debian ==== |
![]() |
8.1 | 18 | |
![]() |
11.1 | 19 | (% class="code" %) |
20 | ((( | ||
21 | \\ | ||
22 | ))) | ||
![]() |
3.1 | 23 | |
![]() |
11.1 | 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 | ((( | ||
![]() |
9.1 | 50 | rclone config |
![]() |
11.1 | 51 | ))) |
![]() |
3.1 | 52 | |
![]() |
11.1 | 53 | === {{id name="PřenossouborůpomocíRCLONE-Potévprůvodcikonfiguracívytvořtenovývzdálenýkoncovýbod:"/}}(% style="color: rgb(32,33,36);" %)Poté v průvodci konfigurací vytvořte nový vzdálený koncový bod(%%)**:** === |
![]() |
3.1 | 54 | |
![]() |
8.1 | 55 | (% class="code" %) |
56 | ((( | ||
57 | (% class="language-sh" %){{code language="none"}}No remotes found - make a new one | ||
![]() |
3.1 | 58 | n) New remote |
59 | s) Set configuration password | ||
60 | q) Quit config | ||
61 | n/s/q> n | ||
![]() |
8.1 | 62 | {{/code}} |
63 | ))) | ||
![]() |
3.1 | 64 | |
![]() |
11.1 | 65 | === {{id name="PřenossouborůpomocíRCLONE-Zadejtenázevvašehokoncovéhobodu:"/}}(% style="color: rgb(32,33,36);" %)**Zadejte název vašeho koncového bodu**(%%)**:** === |
![]() |
3.1 | 66 | |
![]() |
8.1 | 67 | (% class="code" %) |
68 | ((( | ||
69 | (% class="language-sh" %){{code language="none"}}name> myowncloud | ||
70 | {{/code}} | ||
71 | ))) | ||
![]() |
3.1 | 72 | |
73 | Choose type of storage: | ||
74 | |||
![]() |
8.1 | 75 | (% class="code" %) |
76 | ((( | ||
77 | (% class="language-sh" %){{code language="none"}}Type of storage to configure. | ||
![]() |
3.1 | 78 | Choose a number from below, or type in your own value |
79 | .. | ||
80 | 37 / Webdav | ||
81 | \ "webdav" | ||
82 | .. | ||
83 | Storage> webdav | ||
![]() |
8.1 | 84 | {{/code}} |
85 | ))) | ||
![]() |
3.1 | 86 | |
![]() |
11.1 | 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ě:(%%) === | ||
![]() |
3.1 | 89 | |
![]() |
8.1 | 90 | (% class="code" %) |
91 | ((( | ||
92 | (% class="language-sh" %){{code language="none"}}** See help for webdav backend at: https://rclone.org/webdav/ ** | ||
![]() |
3.1 | 93 | |
94 | URL of http host to connect to | ||
95 | Enter a string value. Press Enter for the default (""). | ||
96 | Choose a number from below, or type in your own value | ||
97 | 1 / Connect to example.com | ||
98 | \ "https://example.com" | ||
![]() |
6.1 | 99 | url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ |
![]() |
8.1 | 100 | {{/code}} |
101 | ))) | ||
![]() |
3.1 | 102 | |
![]() |
11.1 | 103 | === {{id name="PřenossouborůpomocíRCLONE-Zadejtetypslužbywebdav:"/}}**Zadejte typ služby webdav:** === |
![]() |
3.1 | 104 | |
![]() |
8.1 | 105 | (% class="code" %) |
106 | ((( | ||
107 | (% class="language-sh" %){{code language="none"}}Name of the Webdav site/service/software you are using | ||
![]() |
3.1 | 108 | Enter a string value. Press Enter for the default (""). |
109 | Choose a number from below, or type in your own value | ||
110 | 1 / Nextcloud | ||
111 | \ "nextcloud" | ||
112 | 2 / Owncloud | ||
113 | \ "owncloud" | ||
114 | 3 / Sharepoint Online, authenticated by Microsoft account. | ||
115 | \ "sharepoint" | ||
116 | 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises. | ||
117 | \ "sharepoint-ntlm" | ||
118 | 5 / Other site/service or software | ||
119 | \ "other" | ||
120 | vendor> owncloud | ||
![]() |
8.1 | 121 | {{/code}} |
122 | ))) | ||
![]() |
3.1 | 123 | |
![]() |
11.1 | 124 | === {{id name="PřenossouborůpomocíRCLONE-Vložtesvojepřihlašovacíjméno:"/}}(% style="color: rgb(32,33,36);" %)**Vložte svoje přihlašovací jméno**(%%)**:** === |
![]() |
3.1 | 125 | |
![]() |
8.1 | 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'. | ||
![]() |
3.1 | 129 | Enter a string value. Press Enter for the default (""). |
130 | user> <YOUR_USERNAME> | ||
![]() |
8.1 | 131 | {{/code}} |
132 | ))) | ||
![]() |
3.1 | 133 | |
![]() |
11.1 | 134 | === {{id name="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(% style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** === |
![]() |
3.1 | 135 | |
![]() |
8.1 | 136 | (% class="code" %) |
137 | ((( | ||
138 | (% class="language-sh" %){{code language="none"}}Password. | ||
![]() |
3.1 | 139 | y) Yes type in my own password |
140 | g) Generate random password | ||
141 | n) No leave this optional password blank (default) | ||
142 | y/g/n> y | ||
143 | Enter the password: | ||
144 | password: | ||
145 | Confirm the password: | ||
146 | password: | ||
147 | Bearer token instead of user/pass (e.g. a Macaroon) | ||
148 | Enter a string value. Press Enter for the default (""). | ||
149 | bearer_token> | ||
150 | Edit advanced config? (y/n) | ||
151 | y) Yes | ||
152 | n) No (default) | ||
153 | y/n> n | ||
![]() |
8.1 | 154 | {{/code}} |
155 | ))) | ||
![]() |
3.1 | 156 | |
![]() |
11.1 | 157 | === {{id name="PřenossouborůpomocíRCLONE-Potvrďteshrnutíkonfigurace:"/}}(% style="color: rgb(32,33,36);" %)**Potvrďte shrnutí konfigurace**(%%)**:** === |
![]() |
3.1 | 158 | |
![]() |
8.1 | 159 | (% class="code" %) |
160 | ((( | ||
161 | (% class="language-sh" %){{code language="none"}}Remote config | ||
![]() |
3.1 | 162 | -------------------- |
163 | [myowncloud] | ||
164 | type = webdav | ||
165 | url = https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/ | ||
166 | vendor = owncloud | ||
167 | user = <YOUR_USERNAME> | ||
168 | pass = *** ENCRYPTED *** | ||
169 | -------------------- | ||
170 | y) Yes this is OK (default) | ||
171 | e) Edit this remote | ||
172 | d) Delete this remote | ||
173 | y/e/d> y | ||
![]() |
8.1 | 174 | {{/code}} |
175 | ))) | ||
![]() |
3.1 | 176 | |
![]() |
11.1 | 177 | === {{id name="PřenossouborůpomocíRCLONE-Pokudjevšenakonfigurováno,vašekonfiguracerclonebymělavypadattakto:"/}}(% style="color: rgb(32,33,36);" %)**Pokud je vše nakonfigurováno, vaše konfigurace rclone by měla vypadat takto**(%%)**:** === |
![]() |
3.1 | 178 | |
![]() |
8.1 | 179 | (% class="code" %) |
180 | ((( | ||
181 | (% class="language-sh" %){{code language="none"}}Current remotes: | ||
![]() |
3.1 | 182 | |
183 | Name Type | ||
184 | ==== ==== | ||
185 | myowncloud webdav | ||
186 | |||
187 | e) Edit existing remote | ||
188 | n) New remote | ||
189 | d) Delete remote | ||
190 | r) Rename remote | ||
191 | c) Copy remote | ||
192 | s) Set configuration password | ||
193 | q) Quit config | ||
194 | e/n/d/r/c/s/q> q | ||
![]() |
8.1 | 195 | {{/code}} |
196 | ))) | ||
![]() |
3.1 | 197 | |
![]() |
11.1 | 198 | == {{id name="PřenossouborůpomocíRCLONE-Přenossouborůasložek"/}}Přenos souborů a složek == |
![]() |
3.1 | 199 | |
![]() |
11.1 | 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ě === |
![]() |
3.1 | 201 | |
![]() |
8.1 | 202 | (% class="code" %) |
203 | ((( | ||
204 | (% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup | ||
205 | {{/code}} | ||
206 | ))) | ||
![]() |
3.1 | 207 | |
![]() |
11.1 | 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ě === |
![]() |
3.1 | 209 | |
![]() |
8.1 | 210 | (% class="code" %) |
211 | ((( | ||
![]() |
11.1 | 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 | ((( | ||
![]() |
8.1 | 229 | (% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup |
230 | {{/code}} | ||
231 | ))) | ||
232 | |||
![]() |
11.1 | 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ě === |
![]() |
8.1 | 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 | ))) |