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 11.1
edited by Jan LOŠŤÁK
on 2023/03/22 14:34
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,80 @@
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 +(% style="" %)
2 +Tento návod demonstruje ipoje do cloudového uložiště pomocí programu RCLONE.
3 3  
4 -## Install rclone
5 -```sh
6 -yum install -y rclone
7 -```
4 +(% style="" %)
5 +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:
7 +== {{id name="PřenossouborůpomocíRCLONE-InstalaceRCLONE"/}}Instalace RCLONE ==
11 11  
12 -```sh
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 +(((
13 13  rclone config
14 -```
51 +)))
15 15  
16 -Then in configuration wizard create new remote endpoint:
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(%%)**:** ===
17 17  
18 -```sh
19 -No remotes found - make a new one
55 +(% class="code" %)
56 +(((
57 +(% 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 -```
62 +{{/code}}
63 +)))
25 25  
26 -Enter the name of your endpoint:
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**(%%)**:** ===
27 27  
28 -```sh
29 -name> myowncloud
30 -```
67 +(% class="code" %)
68 +(((
69 +(% class="language-sh" %){{code language="none"}}name> myowncloud
70 +{{/code}}
71 +)))
31 31  
32 32  Choose type of storage:
33 33  
34 -```sh
35 -Type of storage to configure.
75 +(% class="code" %)
76 +(((
77 +(% 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 -```
84 +{{/code}}
85 +)))
43 43  
44 -Enter the URL of ownCloud server:
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ě:(%%) ===
45 45  
46 -```sh
47 -** See help for webdav backend at: https://rclone.org/webdav/ **
90 +(% class="code" %)
91 +(((
92 +(% 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 -```
99 +url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
100 +{{/code}}
101 +)))
56 56  
57 -Enter webdav service type:
103 +=== {{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
105 +(% class="code" %)
106 +(((
107 +(% 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 -```
121 +{{/code}}
122 +)))
75 75  
76 -Enter your username:
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**(%%)**:** ===
77 77  
78 -```sh
79 -User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
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'.
80 80  Enter a string value. Press Enter for the default ("").
81 81  user> <YOUR_USERNAME>
82 -```
131 +{{/code}}
132 +)))
83 83  
84 -Enter your password:
134 +=== {{id name="PřenossouborůpomocíRCLONE-Zadejtevašeheslo:"/}}(% style="color: rgb(32,33,36);" %)**Zadejte vaše heslo**(%%)**:** ===
85 85  
86 -```sh
87 -Password.
136 +(% class="code" %)
137 +(((
138 +(% 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 -```
154 +{{/code}}
155 +)))
104 104  
105 -Confirm config summary:
157 +=== {{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
159 +(% class="code" %)
160 +(((
161 +(% 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 -```
174 +{{/code}}
175 +)))
122 122  
123 -If everything is configured your rclone config mneu should look like this:
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**(%%)**:** ===
124 124  
125 -```sh
126 -Current remotes:
179 +(% class="code" %)
180 +(((
181 +(% class="language-sh" %){{code language="none"}}Current remotes:
127 127  
128 128  Name Type
129 129  ==== ====
... ... @@ -137,35 +137,56 @@
137 137  s) Set configuration password
138 138  q) Quit config
139 139  e/n/d/r/c/s/q> q
140 -```
195 +{{/code}}
196 +)))
141 141  
142 -# Copying files
198 +== {{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 -```
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ě ===
148 148  
149 -## Copy file to ownCloud
150 -```sh
151 -rclone copy --progress /myfile.tar myowncloud:/backup
152 -```
202 +(% class="code" %)
203 +(((
204 +(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup
205 +{{/code}}
206 +)))
153 153  
154 -## Copy directory from ownCloud
155 -```sh
156 -rclone copy --progress myowncloud:/backup /backup
157 -```
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ě ===
158 158  
159 -## Copy file from ownCloud
160 -```sh
161 -rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar
162 -```
210 +(% class="code" %)
211 +(((
212 +\\
213 +)))
163 163  
215 +(% class="code" %)
216 +(((
217 +(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup{{/code}}
218 +)))
164 164  
220 +(% class="code" %)
221 +(((
222 +\\
223 +)))
165 165  
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ě ===
166 166  
167 -{{/content}}
227 +(% class="code" %)
228 +(((
229 +(% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup
230 +{{/code}}
231 +)))
168 168  
169 -\\
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ě ===
170 170  
171 -\\
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 +)))
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -74055867
1 +95617252
Title
... ... @@ -1,1 +1,1 @@
1 -Using rclone to copy files in ownCloud
1 +Přenos soubo pomocí RCLONE