Last modified by Jan LOŠŤÁK on 2023/03/23 14:00

From version 4.1
edited by Jan LOŠŤÁK
on 2022/06/01 18:19
Change comment: There is no comment for this version
To version 12.1
edited by Jan LOŠŤÁK
on 2023/03/22 14:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Using rclone to copy files in ownCloud
1 +Přenos soubo pomocí RCLONE
Content
... ... @@ -1,38 +1,60 @@
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.
1 +Tento návod demonstruje připojení do cloudového uložiště pomocí programu RCLONE.
3 3  
4 -## Install rclone
5 -```sh
6 -yum install -y rclone
7 -```
3 +Připojení do cloudového uložiště pomocí **RCLONE **je možné na **MAC, Linux a Windows**.
8 8  
9 -## Create ownCloud config
10 -First we need open configuration wizard:
5 +== {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE ==
11 11  
12 -```sh
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 +(((
13 13  rclone config
14 -```
31 +)))
15 15  
16 -Then in configuration wizard create new remote endpoint:
33 +=== {{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(%%)**:** ===
17 17  
18 -```sh
19 -No remotes found - make a new one
35 +(% class="code" %)
36 +(((
37 +(% class="language-sh" %){{code language="none"}}No remotes found - make a new one
20 20  n) New remote
21 21  s) Set configuration password
22 22  q) Quit config
23 23  n/s/q> n
24 -```
42 +{{/code}}
43 +)))
25 25  
26 -Enter the name of your endpoint:
45 +=== {{id name="PřenossouborůpomocíRCLONE-Zadejtenázevvašehokoncovéhobodu:"/}}(% style="color: rgb(32,33,36);" %)**Zadejte název vašeho koncového bodu**(%%)**:** ===
27 27  
28 -```sh
29 -name> myowncloud
30 -```
47 +(% class="code" %)
48 +(((
49 +(% class="language-sh" %){{code language="none"}}name> myowncloud
50 +{{/code}}
51 +)))
31 31  
32 32  Choose type of storage:
33 33  
34 -```sh
35 -Type of storage to configure.
55 +(% class="code" %)
56 +(((
57 +(% class="language-sh" %){{code language="none"}}Type of storage to configure.
36 36  Choose a number from below, or type in your own value
37 37  ..
38 38  37 / Webdav
... ... @@ -39,12 +39,15 @@
39 39   \ "webdav"
40 40  ..
41 41  Storage> webdav
42 -```
64 +{{/code}}
65 +)))
43 43  
44 -Enter the URL of ownCloud server:
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ě:(%%) ===
45 45  
46 -```sh
47 -** See help for webdav backend at: https://rclone.org/webdav/ **
70 +(% class="code" %)
71 +(((
72 +(% class="language-sh" %){{code language="none"}}** See help for webdav backend at: https://rclone.org/webdav/ **
48 48  
49 49  URL of http host to connect to
50 50  Enter a string value. Press Enter for the default ("").
... ... @@ -51,13 +51,15 @@
51 51  Choose a number from below, or type in your own value
52 52   1 / Connect to example.com
53 53   \ "https://example.com"
54 -url> https://privatecloud.imtm.cz/remote.php/dav/
55 -```
79 +url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
80 +{{/code}}
81 +)))
56 56  
57 -Enter webdav service type:
83 +=== {{id name="PřenossouborůpomocíRCLONE-Zadejtetypslužbywebdav:"/}}**Zadejte typ služby webdav:** ===
58 58  
59 -```sh
60 -Name of the Webdav site/service/software you are using
85 +(% class="code" %)
86 +(((
87 +(% class="language-sh" %){{code language="none"}}Name of the Webdav site/service/software you are using
61 61  Enter a string value. Press Enter for the default ("").
62 62  Choose a number from below, or type in your own value
63 63   1 / Nextcloud
... ... @@ -71,20 +71,24 @@
71 71   5 / Other site/service or software
72 72   \ "other"
73 73  vendor> owncloud
74 -```
101 +{{/code}}
102 +)))
75 75  
76 -Enter your username:
104 +=== {{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**(%%)**:** ===
77 77  
78 -```sh
79 -User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
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'.
80 80  Enter a string value. Press Enter for the default ("").
81 81  user> <YOUR_USERNAME>
82 -```
111 +{{/code}}
112 +)))
83 83  
84 -Enter your password:
114 +=== {{id name="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(% style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** ===
85 85  
86 -```sh
87 -Password.
116 +(% class="code" %)
117 +(((
118 +(% class="language-sh" %){{code language="none"}}Password.
88 88  y) Yes type in my own password
89 89  g) Generate random password
90 90  n) No leave this optional password blank (default)
... ... @@ -100,12 +100,14 @@
100 100  y) Yes
101 101  n) No (default)
102 102  y/n> n
103 -```
134 +{{/code}}
135 +)))
104 104  
105 -Confirm config summary:
137 +=== {{id name="PřenossouborůpomocíRCLONE-Potvrďteshrnutíkonfigurace:"/}}(% style="color: rgb(32,33,36);" %)**Potvrďte shrnutí konfigurace**(%%)**:** ===
106 106  
107 -```sh
108 -Remote config
139 +(% class="code" %)
140 +(((
141 +(% class="language-sh" %){{code language="none"}}Remote config
109 109  --------------------
110 110  [myowncloud]
111 111  type = webdav
... ... @@ -118,12 +118,14 @@
118 118  e) Edit this remote
119 119  d) Delete this remote
120 120  y/e/d> y
121 -```
154 +{{/code}}
155 +)))
122 122  
123 -If everything is configured your rclone config mneu should look like this:
157 +=== {{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**(%%)**:** ===
124 124  
125 -```sh
126 -Current remotes:
159 +(% class="code" %)
160 +(((
161 +(% class="language-sh" %){{code language="none"}}Current remotes:
127 127  
128 128  Name Type
129 129  ==== ====
... ... @@ -137,35 +137,64 @@
137 137  s) Set configuration password
138 138  q) Quit config
139 139  e/n/d/r/c/s/q> q
140 -```
175 +{{/code}}
176 +)))
141 141  
142 -# Copying files
178 +== {{id name="PřenossouborůpomocíRCLONE-Přenossouborůaslek"/}}Přenos souborů a složek ==
143 143  
144 -## Copy directory to ownCloud
145 -```sh
146 -rclone copy --progress /backup myowncloud:/backup
147 -```
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ě ===
148 148  
149 -## Copy file to ownCloud
150 -```sh
151 -rclone copy --progress /myfile.tar myowncloud:/backup
152 -```
182 +(% class="code" %)
183 +(((
184 +(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup
185 +{{/code}}
186 +)))
153 153  
154 -## Copy directory from ownCloud
155 -```sh
156 -rclone copy --progress myowncloud:/backup /backup
157 -```
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ě ===
158 158  
159 -## Copy file from ownCloud
160 -```sh
161 -rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar
162 -```
190 +(% class="code" %)
191 +(((
192 +(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup{{/code}}
193 +)))
163 163  
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ě ===
164 164  
197 +(% class="code" %)
198 +(((
199 +(% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup
200 +{{/code}}
201 +)))
165 165  
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ě ===
166 166  
167 -{{/content}}
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 +)))
168 168  
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 +(((
169 169  \\
225 +)))
170 170  
227 +(% class="code" %)
228 +(((
229 +(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup{{/code}}
230 +)))
231 +
232 +(% class="code" %)
233 +(((
171 171  \\
235 +)))
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -74055867
1 +95617256
Title
... ... @@ -1,1 +1,1 @@
1 -Using rclone to copy files in ownCloud
1 +Přenos soubo pomocí RCLONE