https://github.com/ruarxive/ydiskarc
command-line tool to backup public resources from Yandex.disk (disk.yandex.ru / yadi.sk) filestorage service
https://github.com/ruarxive/ydiskarc
archiving backup yandex yandex-api yandex-disk
Last synced: 7 days ago
JSON representation
command-line tool to backup public resources from Yandex.disk (disk.yandex.ru / yadi.sk) filestorage service
- Host: GitHub
- URL: https://github.com/ruarxive/ydiskarc
- Owner: ruarxive
- License: mit
- Created: 2021-11-26T10:16:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T07:41:45.000Z (9 months ago)
- Last Synced: 2024-09-15T15:38:50.154Z (7 months ago)
- Topics: archiving, backup, yandex, yandex-api, yandex-disk
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-digital-preservation - ydiskarc - command-line tool to backup public resources from Yandex.disk (disk.yandex.ru / yadi.sk) filestorage service (Other digital objects / Online storage)
README
ydiskarc: a command-line tool to backup public resources from Yandex.disk (disk.yandex.ru / yadi.sk) filestorage service
########################################################################################################################ydiskarc (pronounced *Ai-disk-arc*) is a command line tool used to backup Yandex.Disk public resources.
Public resources are opnly shared files and folders from Yandex.Disk service.
Yandex provides free-to-use API that allow to download the data... contents::
.. section-numbering::
Main features
=============* Metadata extraction
* Download any public resource file or directoryInstallation
============Any OS
-------------A universal installation method (that works on Windows, Mac OS X, Linux, …,
and always provides the latest version) is to use pip:.. code-block:: bash
# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools$ pip install --upgrade ydiskarc
(If ``pip`` installation fails for some reason, you can try
``easy_install ydiskarc`` as a fallback.)Python version
--------------Python version 3.6 or greater is required.
Usage
=====Synopsis:
.. code-block:: bash
$ ydiskarc [command] [flags]
See also ``python -m ydiskarc`` and ``ydiskarc [command] --help`` for help for each command.
Commands
========Sync command
----------------
Synchronizes files and metadata from public resource of directory type to the local directory.Extracts all files and metadata from "https://disk.yandex.ru/d/VVNMYpZtWtST9Q" resource to the dir "mos9maystyle"
.. code-block:: bash
$ ydiskarc sync --url https://disk.yandex.ru/d/VVNMYpZtWtST9Q -o mos9maystyle
Full command
----------------
Downloads single file or directory. Single file downloaded with original file format. Directory downloaded as ZIP file
with all files inside.Downloads file from url "https://disk.yandex.ru/i/t_pNaarK8UJ-bQ" and saves it into folder "files" with metadata saved as "_metadata.json"
.. code-block:: bash
$ ydiskarc full --url https://disk.yandex.ru/i/t_pNaarK8UJ-bQ -o files -v -m