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

From version 10.1
edited by Jan LOŠŤÁK
on 2023/03/22 14:18
Change comment: There is no comment for this version
To version 7.1
edited by Jan LOŠŤÁK
on 2022/11/11 16:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Přenos souborů pomocí RCLONE
1 +Using rclone to copy files
Content
... ... @@ -1,44 +1,38 @@
1 +{{content syntax="markdown/1.2"}}
1 1  In this example you will find how to copy large files or folders to or from your owncloud account.
2 2  
3 -== {{id name="PřenossouborůpomocíRCLONE-Installrclone"/}}Install rclone ==
4 +## Install rclone
5 +```sh
6 +yum install -y rclone
7 +```
4 4  
5 -(% class="code" %)
6 -(((
7 -(% class="language-sh" %){{code language="none"}}yum install -y rclone
8 -{{/code}}
9 -)))
9 +## Create ownCloud config
10 +First we need open configuration wizard:
10 10  
11 -== {{id name="PřenossouborůpomocíRCLONE-CreateownCloudconfig"/}}Create ownCloud config ==
12 -
13 -**First we need open configuration wizard:**
14 -
12 +```sh
15 15  rclone config
14 +```
16 16  
17 -**Then in configuration wizard create new remote endpoint:**
16 +Then in configuration wizard create new remote endpoint:
18 18  
19 -(% class="code" %)
20 -(((
21 -(% class="language-sh" %){{code language="none"}}No remotes found - make a new one
18 +```sh
19 +No remotes found - make a new one
22 22  n) New remote
23 23  s) Set configuration password
24 24  q) Quit config
25 25  n/s/q> n
26 -{{/code}}
27 -)))
24 +```
28 28  
29 -**Enter the name of your endpoint:**
26 +Enter the name of your endpoint:
30 30  
31 -(% class="code" %)
32 -(((
33 -(% class="language-sh" %){{code language="none"}}name> myowncloud
34 -{{/code}}
35 -)))
28 +```sh
29 +name> myowncloud
30 +```
36 36  
37 37  Choose type of storage:
38 38  
39 -(% class="code" %)
40 -(((
41 -(% class="language-sh" %){{code language="none"}}Type of storage to configure.
34 +```sh
35 +Type of storage to configure.
42 42  Choose a number from below, or type in your own value
43 43  ..
44 44  37 / Webdav
... ... @@ -45,14 +45,12 @@
45 45   \ "webdav"
46 46  ..
47 47  Storage> webdav
48 -{{/code}}
49 -)))
42 +```
50 50  
51 -**Enter the URL of ownCloud server:**
44 +Enter the URL of ownCloud server:
52 52  
53 -(% class="code" %)
54 -(((
55 -(% 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/ **
56 56  
57 57  URL of http host to connect to
58 58  Enter a string value. Press Enter for the default ("").
... ... @@ -60,14 +60,12 @@
60 60   1 / Connect to example.com
61 61   \ "https://example.com"
62 62  url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
63 -{{/code}}
64 -)))
55 +```
65 65  
66 -**Enter webdav service type:**
57 +Enter webdav service type:
67 67  
68 -(% class="code" %)
69 -(((
70 -(% 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
71 71  Enter a string value. Press Enter for the default ("").
72 72  Choose a number from below, or type in your own value
73 73   1 / Nextcloud
... ... @@ -81,24 +81,20 @@
81 81   5 / Other site/service or software
82 82   \ "other"
83 83  vendor> owncloud
84 -{{/code}}
85 -)))
74 +```
86 86  
87 -**Enter your username:**
76 +Enter your username:
88 88  
89 -(% class="code" %)
90 -(((
91 -(% 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'.
92 92  Enter a string value. Press Enter for the default ("").
93 93  user> <YOUR_USERNAME>
94 -{{/code}}
95 -)))
82 +```
96 96  
97 -**Enter your password:**
84 +Enter your password:
98 98  
99 -(% class="code" %)
100 -(((
101 -(% class="language-sh" %){{code language="none"}}Password.
86 +```sh
87 +Password.
102 102  y) Yes type in my own password
103 103  g) Generate random password
104 104  n) No leave this optional password blank (default)
... ... @@ -114,14 +114,12 @@
114 114  y) Yes
115 115  n) No (default)
116 116  y/n> n
117 -{{/code}}
118 -)))
103 +```
119 119  
120 -**Confirm config summary:**
105 +Confirm config summary:
121 121  
122 -(% class="code" %)
123 -(((
124 -(% class="language-sh" %){{code language="none"}}Remote config
107 +```sh
108 +Remote config
125 125  --------------------
126 126  [myowncloud]
127 127  type = webdav
... ... @@ -134,14 +134,12 @@
134 134  e) Edit this remote
135 135  d) Delete this remote
136 136  y/e/d> y
137 -{{/code}}
138 -)))
121 +```
139 139  
140 -**If everything is configured your rclone config mneu should look like this:**
123 +If everything is configured your rclone config mneu should look like this:
141 141  
142 -(% class="code" %)
143 -(((
144 -(% class="language-sh" %){{code language="none"}}Current remotes:
125 +```sh
126 +Current remotes:
145 145  
146 146  Name Type
147 147  ==== ====
... ... @@ -155,39 +155,27 @@
155 155  s) Set configuration password
156 156  q) Quit config
157 157  e/n/d/r/c/s/q> q
158 -{{/code}}
159 -)))
140 +```
160 160  
161 -= {{id name="PřenossouborůpomocíRCLONE-Copyingfiles"/}}Copying files =
142 +# Copying files
162 162  
163 -== {{id name="PřenossouborůpomocíRCLONE-CopydirectorytoownCloud"/}}Copy directory to ownCloud ==
144 +## Copy directory to ownCloud
145 +```sh
146 +rclone copy --progress --transfers 16 /backup myowncloud:/backup
147 +```
164 164  
165 -(% class="code" %)
166 -(((
167 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /backup myowncloud:/backup
168 -{{/code}}
169 -)))
149 +## Copy file to ownCloud
150 +```sh
151 +rclone copy --progress --transfers 16 /myfile.tar myowncloud:/backup
152 +```
170 170  
171 -== {{id name="PřenossouborůpomocíRCLONE-CopyfiletoownCloud"/}}Copy file to ownCloud ==
154 +## Copy directory from ownCloud
155 +```sh
156 +rclone copy --progress --transfers 16 myowncloud:/backup /backup
157 +```
172 172  
173 -(% class="code" %)
174 -(((
175 -(% class="language-sh" %){{code language="none"}}rclone copy --progress /myfile.tar myowncloud:/backup
176 -{{/code}}
177 -)))
178 -
179 -== {{id name="PřenossouborůpomocíRCLONE-CopydirectoryfromownCloud"/}}Copy directory from ownCloud ==
180 -
181 -(% class="code" %)
182 -(((
183 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup /backup
184 -{{/code}}
185 -)))
186 -
187 -== {{id name="PřenossouborůpomocíRCLONE-CopyfilefromownCloud"/}}Copy file from ownCloud ==
188 -
189 -(% class="code" %)
190 -(((
191 -(% class="language-sh" %){{code language="none"}}rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar
192 -{{/code}}
193 -)))
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 -95617250
1 +95617090
Title
... ... @@ -1,1 +1,1 @@
1 -Přenos souborů pomocí RCLONE
1 +Using rclone to copy files