Skip to content

Instantly share code, notes, and snippets.

@artrey
Created March 19, 2022 11:39
Show Gist options
  • Save artrey/1919c4d12e48804c80d9450aef746416 to your computer and use it in GitHub Desktop.
Save artrey/1919c4d12e48804c80d9450aef746416 to your computer and use it in GitHub Desktop.

Start

sudo apt install rclone
rclone config

Dialog

pi@orangepipc2:~/services$ rclone config
2022/03/19 14:34:02 NOTICE: Config file "/home/pi/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
n/r/c/s/q> n
name> yandex
Type of storage to configure.
Choose a number from below, or type in your own value
 1 / Amazon Drive
   \ "amazon cloud drive"
 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Dropbox
   \ "dropbox"
 5 / Encrypt/Decrypt a remote
   \ "crypt"
 6 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
 7 / Google Drive
   \ "drive"
 8 / Hubic
   \ "hubic"
 9 / Local Disk
   \ "local"
10 / Microsoft OneDrive
   \ "onedrive"
11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
12 / SSH/SFTP Connection
   \ "sftp"
13 / Yandex Disk
   \ "yandex"
Storage> 13
Yandex Client Id - leave blank normally.
client_id> 
Yandex Client Secret - leave blank normally.
client_secret> 
Remote config
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> n
For this to work, you will need rclone available on a machine that has a web browser available.
Execute the following on your machine:
	rclone authorize "yandex"
Then paste the result below:
result> PUT_YOUR_TOKEN_HERE

Command

rclone sync FROM yandex:TO

Extra info

https://www.youtube.com/watch?v=tUGe-JOSDsw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment