Yandex Disk

Yandex Disk is a cloud storage solution created by Yandex.


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
s) Set configuration password
n/s> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
XX / Yandex Disk
   \ "yandex"
Storage> yandex
Yandex Client Id - leave blank normally.
Yandex Client Secret - leave blank normally.
Remote config
Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link:
Log in and authorize rclone for access
Waiting for code...
Got code
client_id =
client_secret =
token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"OAuth","expiry":"2016-12-29T12:27:11.362788025Z"}
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y

See the remote setup docs 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 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,

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 --interactive /home/local/directory remote:directory

Yandex paths may be as deep as required, e.g. remote:directory/subdirectory.

Modification times and hashes

Modified times are supported and are stored accurate to 1 ns in custom metadata called rclone_modified in RFC3339 with nanoseconds format.

The MD5 hash algorithm is natively supported by Yandex Disk.

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.

Quota information

To view your current quota you can use the rclone about remote: command which will display your usage limit (quota) and the current usage.

Restricted filename characters

The default restricted characters set are replaced.

Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

Standard options

Here are the Standard options specific to yandex (Yandex Disk).


OAuth Client Id.

Leave blank normally.


  • Config: client_id
  • Type: string
  • Required: false


OAuth Client Secret.

Leave blank normally.


  • Config: client_secret
  • Type: string
  • Required: false

Advanced options

Here are the Advanced options specific to yandex (Yandex Disk).


OAuth Access Token as a JSON blob.


  • Config: token
  • Type: string
  • Required: false


Auth server URL.

Leave blank to use the provider defaults.


  • Config: auth_url
  • Type: string
  • Required: false


Token server url.

Leave blank to use the provider defaults.


  • Config: token_url
  • Type: string
  • Required: false


Delete files permanently rather than putting them into the trash.


  • Config: hard_delete
  • Type: bool
  • Default: false


The encoding for the backend.

See the encoding section in the overview for more info.


  • Config: encoding
  • Type: Encoding
  • Default: Slash,Del,Ctl,InvalidUtf8,Dot


Description of the remote.


  • Config: description
  • Type: string
  • Required: false


When uploading very large files (bigger than about 5 GiB) you will need to increase the --timeout parameter. This is because Yandex pauses (perhaps to calculate the MD5SUM for the entire file) before returning confirmation that the file has been uploaded. The default handling of timeouts in rclone is to assume a 5 minute pause is an error and close the connection - you'll see net/http: timeout awaiting response headers errors in the logs if this is happening. Setting the timeout to twice the max size of file in GiB should be enough, so if you want to upload a 30 GiB file set a timeout of 2 * 30 = 60m, that is --timeout 60m.

Having a Yandex Mail account is mandatory to use the Yandex.Disk subscription. Token generation will work without a mail account, but Rclone won't be able to complete any actions.

[403 - DiskUnsupportedUserAccountTypeError] User account type is not supported.