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

From version 1.1
edited by Jan LOŠŤÁK
on 2022/06/01 15:13
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 -Kopírování přes rclone
1 +Using rclone to copy files
Content
... ... @@ -1,0 +1,163 @@
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.
3 +
4 +## Install rclone
5 +```sh
6 +yum install -y rclone
7 +```
8 +
9 +## Create ownCloud config
10 +First we need open configuration wizard:
11 +
12 +```sh
13 +rclone config
14 +```
15 +
16 +Then in configuration wizard create new remote endpoint:
17 +
18 +```sh
19 +No remotes found - make a new one
20 +n) New remote
21 +s) Set configuration password
22 +q) Quit config
23 +n/s/q> n
24 +```
25 +
26 +Enter the name of your endpoint:
27 +
28 +```sh
29 +name> myowncloud
30 +```
31 +
32 +Choose type of storage:
33 +
34 +```sh
35 +Type of storage to configure.
36 +Choose a number from below, or type in your own value
37 +..
38 +37 / Webdav
39 + \ "webdav"
40 +..
41 +Storage> webdav
42 +```
43 +
44 +Enter the URL of ownCloud server:
45 +
46 +```sh
47 +** See help for webdav backend at: https://rclone.org/webdav/ **
48 +
49 +URL of http host to connect to
50 +Enter a string value. Press Enter for the default ("").
51 +Choose a number from below, or type in your own value
52 + 1 / Connect to example.com
53 + \ "https://example.com"
54 +url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
55 +```
56 +
57 +Enter webdav service type:
58 +
59 +```sh
60 +Name of the Webdav site/service/software you are using
61 +Enter a string value. Press Enter for the default ("").
62 +Choose a number from below, or type in your own value
63 + 1 / Nextcloud
64 + \ "nextcloud"
65 + 2 / Owncloud
66 + \ "owncloud"
67 + 3 / Sharepoint Online, authenticated by Microsoft account.
68 + \ "sharepoint"
69 + 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises.
70 + \ "sharepoint-ntlm"
71 + 5 / Other site/service or software
72 + \ "other"
73 +vendor> owncloud
74 +```
75 +
76 +Enter your username:
77 +
78 +```sh
79 +User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
80 +Enter a string value. Press Enter for the default ("").
81 +user> <YOUR_USERNAME>
82 +```
83 +
84 +Enter your password:
85 +
86 +```sh
87 +Password.
88 +y) Yes type in my own password
89 +g) Generate random password
90 +n) No leave this optional password blank (default)
91 +y/g/n> y
92 +Enter the password:
93 +password:
94 +Confirm the password:
95 +password:
96 +Bearer token instead of user/pass (e.g. a Macaroon)
97 +Enter a string value. Press Enter for the default ("").
98 +bearer_token>
99 +Edit advanced config? (y/n)
100 +y) Yes
101 +n) No (default)
102 +y/n> n
103 +```
104 +
105 +Confirm config summary:
106 +
107 +```sh
108 +Remote config
109 +--------------------
110 +[myowncloud]
111 +type = webdav
112 +url = https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
113 +vendor = owncloud
114 +user = <YOUR_USERNAME>
115 +pass = *** ENCRYPTED ***
116 +--------------------
117 +y) Yes this is OK (default)
118 +e) Edit this remote
119 +d) Delete this remote
120 +y/e/d> y
121 +```
122 +
123 +If everything is configured your rclone config mneu should look like this:
124 +
125 +```sh
126 +Current remotes:
127 +
128 +Name Type
129 +==== ====
130 +myowncloud webdav
131 +
132 +e) Edit existing remote
133 +n) New remote
134 +d) Delete remote
135 +r) Rename remote
136 +c) Copy remote
137 +s) Set configuration password
138 +q) Quit config
139 +e/n/d/r/c/s/q> q
140 +```
141 +
142 +# Copying files
143 +
144 +## Copy directory to ownCloud
145 +```sh
146 +rclone copy --progress --transfers 16 /backup myowncloud:/backup
147 +```
148 +
149 +## Copy file to ownCloud
150 +```sh
151 +rclone copy --progress --transfers 16 /myfile.tar myowncloud:/backup
152 +```
153 +
154 +## Copy directory from ownCloud
155 +```sh
156 +rclone copy --progress --transfers 16 myowncloud:/backup /backup
157 +```
158 +
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 -74055858
1 +95617090
Title
... ... @@ -1,1 +1,1 @@
1 -Kopírování přes rclone
1 +Using rclone to copy files