2015-12-30 13:45:43 +01:00
|
|
|
---
|
|
|
|
title: "Yandex"
|
|
|
|
description: "Yandex Disk"
|
|
|
|
date: "2015-12-30"
|
|
|
|
---
|
|
|
|
|
|
|
|
<i class="fa fa-space-shuttle"></i>Yandex Disk
|
|
|
|
----------------------------------------
|
|
|
|
|
2017-03-29 14:38:34 +02:00
|
|
|
[Yandex Disk](https://disk.yandex.com) is a cloud storage solution created by [Yandex](https://yandex.com).
|
2015-12-30 13:45:43 +01:00
|
|
|
|
|
|
|
Yandex paths may be as deep as required, eg `remote:directory/subdirectory`.
|
|
|
|
|
|
|
|
Here is an example of making a yandex configuration. First run
|
|
|
|
|
|
|
|
rclone config
|
|
|
|
|
|
|
|
This will guide you through an interactive setup process:
|
|
|
|
|
|
|
|
```
|
|
|
|
No remotes found - make a new one
|
|
|
|
n) New remote
|
2016-02-21 14:39:04 +01:00
|
|
|
s) Set configuration password
|
|
|
|
n/s> n
|
2015-12-30 13:45:43 +01:00
|
|
|
name> remote
|
2016-02-21 14:39:04 +01:00
|
|
|
Type of storage to configure.
|
|
|
|
Choose a number from below, or type in your own value
|
2016-07-11 13:42:44 +02:00
|
|
|
1 / Amazon Drive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "amazon cloud drive"
|
2017-01-09 06:09:19 +01:00
|
|
|
2 / Amazon S3 (also Dreamhost, Ceph, Minio)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "s3"
|
|
|
|
3 / Backblaze B2
|
|
|
|
\ "b2"
|
|
|
|
4 / Dropbox
|
|
|
|
\ "dropbox"
|
2017-01-09 06:09:19 +01:00
|
|
|
5 / Encrypt/Decrypt a remote
|
|
|
|
\ "crypt"
|
|
|
|
6 / Google Cloud Storage (this is not Google Drive)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "google cloud storage"
|
2017-01-09 06:09:19 +01:00
|
|
|
7 / Google Drive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "drive"
|
2017-01-09 06:09:19 +01:00
|
|
|
8 / Hubic
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "hubic"
|
2017-01-09 06:09:19 +01:00
|
|
|
9 / Local Disk
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "local"
|
2017-01-09 06:09:19 +01:00
|
|
|
10 / Microsoft OneDrive
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "onedrive"
|
2017-01-09 06:09:19 +01:00
|
|
|
11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "swift"
|
2017-03-05 11:14:57 +01:00
|
|
|
12 / SSH/SFTP Connection
|
|
|
|
\ "sftp"
|
|
|
|
13 / Yandex Disk
|
2016-02-21 14:39:04 +01:00
|
|
|
\ "yandex"
|
2017-03-05 11:14:57 +01:00
|
|
|
Storage> 13
|
2015-12-30 13:45:43 +01:00
|
|
|
Yandex Client Id - leave blank normally.
|
2017-01-09 06:09:19 +01:00
|
|
|
client_id>
|
2015-12-30 13:45:43 +01:00
|
|
|
Yandex Client Secret - leave blank normally.
|
2017-01-09 06:09:19 +01:00
|
|
|
client_secret>
|
2015-12-30 13:45:43 +01:00
|
|
|
Remote config
|
2016-02-21 14:39:04 +01:00
|
|
|
Use auto config?
|
|
|
|
* Say Y if not sure
|
|
|
|
* Say N if you are working on a remote or headless machine
|
|
|
|
y) Yes
|
|
|
|
n) No
|
|
|
|
y/n> y
|
2015-12-30 13:45:43 +01:00
|
|
|
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
|
|
|
|
Log in and authorize rclone for access
|
|
|
|
Waiting for code...
|
|
|
|
Got code
|
|
|
|
--------------------
|
|
|
|
[remote]
|
2017-01-09 06:09:19 +01:00
|
|
|
client_id =
|
|
|
|
client_secret =
|
2015-12-30 13:45:43 +01:00
|
|
|
token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"2016-12-29T12:27:11.362788025Z"}
|
|
|
|
--------------------
|
|
|
|
y) Yes this is OK
|
|
|
|
e) Edit this remote
|
|
|
|
d) Delete this remote
|
|
|
|
y/e/d> y
|
|
|
|
```
|
|
|
|
|
2016-01-07 16:20:32 +01:00
|
|
|
See the [remote setup docs](/remote_setup/) for how to set it up on a
|
|
|
|
machine with no Internet browser available.
|
|
|
|
|
|
|
|
Note that rclone runs a webserver on your local machine to collect the
|
|
|
|
token as returned from Yandex Disk. This only runs from the moment it
|
|
|
|
opens your browser to the moment you get back the verification code.
|
|
|
|
This is on `http://127.0.0.1:53682/` and this it may require you to
|
|
|
|
unblock it temporarily if you are running a host firewall.
|
|
|
|
|
|
|
|
Once configured you can then use `rclone` like this,
|
2015-12-30 13:45:43 +01:00
|
|
|
|
|
|
|
See top level directories
|
|
|
|
|
|
|
|
rclone lsd remote:
|
|
|
|
|
|
|
|
Make a new directory
|
|
|
|
|
|
|
|
rclone mkdir remote:directory
|
|
|
|
|
|
|
|
List the contents of a directory
|
|
|
|
|
|
|
|
rclone ls remote:directory
|
|
|
|
|
|
|
|
Sync `/home/local/directory` to the remote path, deleting any
|
|
|
|
excess files in the path.
|
|
|
|
|
|
|
|
rclone sync /home/local/directory remote:directory
|
|
|
|
|
2017-06-06 17:40:00 +02:00
|
|
|
### --fast-list ###
|
|
|
|
|
|
|
|
This remote supports `--fast-list` which allows you to use fewer
|
|
|
|
transactions in exchange for more memory. See the [rclone
|
|
|
|
docs](/docs/#fast-list) for more details.
|
|
|
|
|
2015-12-30 13:45:43 +01:00
|
|
|
### Modified time ###
|
|
|
|
|
|
|
|
Modified times are supported and are stored accurate to 1 ns in custom
|
|
|
|
metadata called `rclone_modified` in RFC3339 with nanoseconds format.
|
|
|
|
|
|
|
|
### MD5 checksums ###
|
|
|
|
|
|
|
|
MD5 checksums are natively supported by Yandex Disk.
|
2017-09-07 19:10:39 +02:00
|
|
|
|
|
|
|
### Emptying Trash ###
|
|
|
|
|
|
|
|
If you wish to empty your trash you can use the `rclone cleanup remote:`
|
|
|
|
command which will permanently delete all your trashed files. This command
|
|
|
|
does not take any path arguments.
|