Ubuntu-yandex disk

Source: Internet
Author: User
Tags gpg

Features: Support Read-only, that is, each update file will be uploaded and renamed.

20GB space, large capacity.

Very convenient to create a chain, share files to others.

Original: Http://help.yandex.com/disk/cli-clients.xml

1. Manual Installation:

32bit Download:

Http://repo.yandex.ru/yandex-disk/yandex-disk_latest_i386.deb

Installation:

# dpkg-i Yandex-disk_0.1.0.103_i386.deb

2. Apt-get Installation

# echo "Deb http://repo.yandex.ru/yandex-disk/deb/stable main" >>/etc/apt/sources.list.d/yandex.list# Apt-get update# Apt-get Install Yandex-disk

Re-GPG verification may be required

sudo rpm--import Http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG


3. Setup

$ yandex-disk Setup
Whether to configure Proxy server (with further options), whether to start the boot, account password input.


4. Command

4.1 Token

Yandex-disk token [-P,--password=password] [OPTION] USERNAME [FILE]

Login password to save, Yandex-disk authorized username [file] (the directory of authorized file storage, if not the default in ~/.config/yandex-disk storage), and then enter the password.

4.2 Start

Yandex-disk start [OPTION]
Turn on daemon, synchronize all files except Except-dirs

4.3 Status

Yandex-disk status [OPTION]

Displays the status of the daemon (sync status, sync error, sync folder, disk total space)

4.4 Stop

$ yandex-disk Stop [OPTION]
Close Daemon

4.5 Sync

Yandex-disk Sync [OPTION]


Synchronize all folders except the exclusion list on Exclude-dirs

4.6 Publish

Yandex-disk publish [OPTION] FILE

Get a public connection that publishes a file or folder

4.7 Unpublish

Yandex-disk unpublish FILE

Reclaim a public connection for a published file or folder


5. A few additional command

--config=file,-C FILE

Displays the default ~/.config/yandex-disk for configuration file,config.cfg
--dir=dir,-D dir

Enter a local Disk copy path, actually at setup and input, default is ~/yandex.disk
--auth=file,-a FILE

Input contains the login data file, the default file is passwd, a file created with token ~/.config/yandex-disk
--exclude-dirs=dir1,dir2,...

Do not sync folders, if you always want these files are not synchronized, then you need to add this exclude-dirs to Config.cfg, in order to work properly, you need to separate multiple exclusive path names, without spaces
--read-only

Do not modify files on disk server, run sync is only synchronous local copy, in order to avoid synchronization conflict, the local file will be renamed, if the--overwrite setting is also valid, then the local file will be overwritten.
--overwrite

Allow local modifications to sync to disk when synchronizing will overwritten server files, with--read-only
--no-daemon,-D

Login daemon But do not return to the management platform, in another console daemon must use the command Yandex-disk stop to stop, or close the current console return control permissions.
--help,-H

Show Help

--proxy=param
To set up proxy server, the valid parameters are:

auto-Auto (default)

no-Do not use ProxyServer

Protocol,address,port,login,password-Manual Setup


6. Simple example

andwithdonot‘Foto‘in‘read-only‘ modegetpublicto‘Foto‘

Ubuntu-yandex disk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.