github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/docs/content/mailru.md (about) 1 --- 2 title: "Mailru" 3 description: "Mail.ru Cloud" 4 date: "2019-08-04" 5 --- 6 7 <i class="fas fa-at"></i> Mail.ru Cloud 8 ---------------------------------------- 9 10 [Mail.ru Cloud](https://cloud.mail.ru/) is a cloud storage provided by a Russian internet company [Mail.Ru Group](https://mail.ru). The official desktop client is [Disk-O:](https://disk-o.cloud/), available only on Windows. (Please note that official sites are in Russian) 11 12 ### Features highlights ### 13 14 - Paths may be as deep as required, eg `remote:directory/subdirectory` 15 - Files have a `last modified time` property, directories don't 16 - Deleted files are by default moved to the trash 17 - Files and directories can be shared via public links 18 - Partial uploads or streaming are not supported, file size must be known before upload 19 - Maximum file size is limited to 2G for a free acount, unlimited for paid accounts 20 - Storage keeps hash for all files and performs transparent deduplication, 21 the hash algorithm is a modified SHA1 22 - If a particular file is already present in storage, one can quickly submit file hash 23 instead of long file upload (this optimization is supported by rclone) 24 25 ### Configuration ### 26 27 Here is an example of making a mailru configuration. First create a Mail.ru Cloud 28 account and choose a tariff, then run 29 30 rclone config 31 32 This will guide you through an interactive setup process: 33 34 ``` 35 No remotes found - make a new one 36 n) New remote 37 s) Set configuration password 38 q) Quit config 39 n/s/q> n 40 name> remote 41 Type of storage to configure. 42 Type of storage to configure. 43 Enter a string value. Press Enter for the default (""). 44 Choose a number from below, or type in your own value 45 [snip] 46 XX / Mail.ru Cloud 47 \ "mailru" 48 [snip] 49 Storage> mailru 50 User name (usually email) 51 Enter a string value. Press Enter for the default (""). 52 user> username@mail.ru 53 Password 54 y) Yes type in my own password 55 g) Generate random password 56 y/g> y 57 Enter the password: 58 password: 59 Confirm the password: 60 password: 61 Skip full upload if there is another file with same data hash. 62 This feature is called "speedup" or "put by hash". It is especially efficient 63 in case of generally available files like popular books, video or audio clips 64 [snip] 65 Enter a boolean value (true or false). Press Enter for the default ("true"). 66 Choose a number from below, or type in your own value 67 1 / Enable 68 \ "true" 69 2 / Disable 70 \ "false" 71 speedup_enable> 1 72 Edit advanced config? (y/n) 73 y) Yes 74 n) No 75 y/n> n 76 Remote config 77 -------------------- 78 [remote] 79 type = mailru 80 user = username@mail.ru 81 pass = *** ENCRYPTED *** 82 speedup_enable = true 83 -------------------- 84 y) Yes this is OK 85 e) Edit this remote 86 d) Delete this remote 87 y/e/d> y 88 ``` 89 90 Configuration of this backend does not require a local web browser. 91 You can use the configured backend as shown below: 92 93 See top level directories 94 95 rclone lsd remote: 96 97 Make a new directory 98 99 rclone mkdir remote:directory 100 101 List the contents of a directory 102 103 rclone ls remote:directory 104 105 Sync `/home/local/directory` to the remote path, deleting any 106 excess files in the path. 107 108 rclone sync /home/local/directory remote:directory 109 110 ### Modified time ### 111 112 Files support a modification time attribute with up to 1 second precision. 113 Directories do not have a modification time, which is shown as "Jan 1 1970". 114 115 ### Hash checksums ### 116 117 Hash sums use a custom Mail.ru algorithm based on SHA1. 118 If file size is less than or equal to the SHA1 block size (20 bytes), 119 its hash is simply its data right-padded with zero bytes. 120 Hash sum of a larger file is computed as a SHA1 sum of the file data 121 bytes concatenated with a decimal representation of the data length. 122 123 ### Emptying Trash ### 124 125 Removing a file or directory actually moves it to the trash, which is not 126 visible to rclone but can be seen in a web browser. The trashed file 127 still occupies part of total quota. If you wish to empty your trash 128 and free some quota, you can use the `rclone cleanup remote:` command, 129 which will permanently delete all your trashed files. 130 This command does not take any path arguments. 131 132 ### Quota information ### 133 134 To view your current quota you can use the `rclone about remote:` 135 command which will display your usage limit (quota) and the current usage. 136 137 #### Restricted filename characters 138 139 In addition to the [default restricted characters set](/overview/#restricted-characters) 140 the following characters are also replaced: 141 142 | Character | Value | Replacement | 143 | --------- |:-----:|:-----------:| 144 | " | 0x22 | " | 145 | * | 0x2A | * | 146 | : | 0x3A | : | 147 | < | 0x3C | < | 148 | > | 0x3E | > | 149 | ? | 0x3F | ? | 150 | \ | 0x5C | \ | 151 | \| | 0x7C | | | 152 153 Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8), 154 as they can't be used in JSON strings. 155 156 ### Limitations ### 157 158 File size limits depend on your account. A single file size is limited by 2G 159 for a free account and unlimited for paid tariffs. Please refer to the Mail.ru 160 site for the total uploaded size limits. 161 162 Note that Mailru is case insensitive so you can't have a file called 163 "Hello.doc" and one called "hello.doc". 164 165 <!--- autogenerated options start - DO NOT EDIT, instead edit fs.RegInfo in backend/mailru/mailru.go then run make backenddocs --> 166 ### Standard Options 167 168 Here are the standard options specific to mailru (Mail.ru Cloud). 169 170 #### --mailru-user 171 172 User name (usually email) 173 174 - Config: user 175 - Env Var: RCLONE_MAILRU_USER 176 - Type: string 177 - Default: "" 178 179 #### --mailru-pass 180 181 Password 182 183 - Config: pass 184 - Env Var: RCLONE_MAILRU_PASS 185 - Type: string 186 - Default: "" 187 188 #### --mailru-speedup-enable 189 190 Skip full upload if there is another file with same data hash. 191 This feature is called "speedup" or "put by hash". It is especially efficient 192 in case of generally available files like popular books, video or audio clips, 193 because files are searched by hash in all accounts of all mailru users. 194 Please note that rclone may need local memory and disk space to calculate 195 content hash in advance and decide whether full upload is required. 196 Also, if rclone does not know file size in advance (e.g. in case of 197 streaming or partial uploads), it will not even try this optimization. 198 199 - Config: speedup_enable 200 - Env Var: RCLONE_MAILRU_SPEEDUP_ENABLE 201 - Type: bool 202 - Default: true 203 - Examples: 204 - "true" 205 - Enable 206 - "false" 207 - Disable 208 209 ### Advanced Options 210 211 Here are the advanced options specific to mailru (Mail.ru Cloud). 212 213 #### --mailru-speedup-file-patterns 214 215 Comma separated list of file name patterns eligible for speedup (put by hash). 216 Patterns are case insensitive and can contain '*' or '?' meta characters. 217 218 - Config: speedup_file_patterns 219 - Env Var: RCLONE_MAILRU_SPEEDUP_FILE_PATTERNS 220 - Type: string 221 - Default: "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf" 222 - Examples: 223 - "" 224 - Empty list completely disables speedup (put by hash). 225 - "*" 226 - All files will be attempted for speedup. 227 - "*.mkv,*.avi,*.mp4,*.mp3" 228 - Only common audio/video files will be tried for put by hash. 229 - "*.zip,*.gz,*.rar,*.pdf" 230 - Only common archives or PDF books will be tried for speedup. 231 232 #### --mailru-speedup-max-disk 233 234 This option allows you to disable speedup (put by hash) for large files 235 (because preliminary hashing can exhaust you RAM or disk space) 236 237 - Config: speedup_max_disk 238 - Env Var: RCLONE_MAILRU_SPEEDUP_MAX_DISK 239 - Type: SizeSuffix 240 - Default: 3G 241 - Examples: 242 - "0" 243 - Completely disable speedup (put by hash). 244 - "1G" 245 - Files larger than 1Gb will be uploaded directly. 246 - "3G" 247 - Choose this option if you have less than 3Gb free on local disk. 248 249 #### --mailru-speedup-max-memory 250 251 Files larger than the size given below will always be hashed on disk. 252 253 - Config: speedup_max_memory 254 - Env Var: RCLONE_MAILRU_SPEEDUP_MAX_MEMORY 255 - Type: SizeSuffix 256 - Default: 32M 257 - Examples: 258 - "0" 259 - Preliminary hashing will always be done in a temporary disk location. 260 - "32M" 261 - Do not dedicate more than 32Mb RAM for preliminary hashing. 262 - "256M" 263 - You have at most 256Mb RAM free for hash calculations. 264 265 #### --mailru-check-hash 266 267 What should copy do if file checksum is mismatched or invalid 268 269 - Config: check_hash 270 - Env Var: RCLONE_MAILRU_CHECK_HASH 271 - Type: bool 272 - Default: true 273 - Examples: 274 - "true" 275 - Fail with error. 276 - "false" 277 - Ignore and continue. 278 279 #### --mailru-user-agent 280 281 HTTP user agent used internally by client. 282 Defaults to "rclone/VERSION" or "--user-agent" provided on command line. 283 284 - Config: user_agent 285 - Env Var: RCLONE_MAILRU_USER_AGENT 286 - Type: string 287 - Default: "" 288 289 #### --mailru-quirks 290 291 Comma separated list of internal maintenance flags. 292 This option must not be used by an ordinary user. It is intended only to 293 facilitate remote troubleshooting of backend issues. Strict meaning of 294 flags is not documented and not guaranteed to persist between releases. 295 Quirks will be removed when the backend grows stable. 296 Supported quirks: atomicmkdir binlist gzip insecure retry400 297 298 - Config: quirks 299 - Env Var: RCLONE_MAILRU_QUIRKS 300 - Type: string 301 - Default: "" 302 303 #### --mailru-encoding 304 305 This sets the encoding for the backend. 306 307 See: the [encoding section in the overview](/overview/#encoding) for more info. 308 309 - Config: encoding 310 - Env Var: RCLONE_MAILRU_ENCODING 311 - Type: MultiEncoder 312 - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot 313 314 <!--- autogenerated options stop -->