rclone

Rclone is a command line program to manage files on cloud storage. (Google drive) Rclone mounts any local, cloud or virtual filesystem as a disk on Windows, macOS, linux and FreeBSD, and also serves these over SFTP, HTTP, WebDAV, FTP and DLNA.

Supported providers:

Debian setup

   1 sudo apt install rclone
   2 rclone config
   3 # n) New remote
   4 n/s/q> n
   5 name> remotedrive
   6 #Type of storage to configure.
   7 #Enter a string value. Press Enter for the default ("").
   8 #Choose a number from below, or type in your own value
   9 #12 / Google Drive
  10 #   \ "drive"
  11 Storage> 12
  12 #** See help for drive backend at: https://rclone.org/drive/ **
  13 #Google Application Client Id
  14 #Leave blank normally.
  15 #Enter a string value. Press Enter for the default ("").
  16 client_id> 
  17 #Google Application Client Secret
  18 #Leave blank normally.
  19 #Enter a string value. Press Enter for the default ("").
  20 client_secret> 
  21 #Scope that rclone should use when requesting access from drive.
  22 #Enter a string value. Press Enter for the default ("").
  23 #Choose a number from below, or type in your own value
  24 # 1 / Full access all files, excluding Application Data Folder.
  25 #   \ "drive"
  26 scope> 1
  27 #ID of the root folder
  28 #Leave blank normally.
  29 #Fill in to access "Computers" folders. (see docs).
  30 #Enter a string value. Press Enter for the default ("").
  31 root_folder_id> 
  32 #Service Account Credentials JSON file path 
  33 #Leave blank normally.
  34 #Needed only if you want use SA instead of interactive login.
  35 #Enter a string value. Press Enter for the default ("").
  36 service_account_file> 
  37 #Edit advanced config? (y/n)
  38 #y) Yes
  39 #n) No
  40 y/n> n
  41 #Remote config
  42 #Use auto config?
  43 # * Say Y if not sure
  44 # * Say N if you are working on a remote or headless machine or Y didn't work
  45 #y) Yes
  46 #n) No
  47 y/n> y
  48 #If your browser doesn't open automatically go to the following link: #http://127.0.0.1:53682/auth
  49 #Log in and authorize rclone for access
  50 #Waiting for code...
  51 #Got code
  52 # Configure this as a team drive?
  53 # y) Yes
  54 # n) No
  55 y/n> y
  56 #Fetching team drive list...
  57 #Choose a number from below, or type in your own value
  58 # 1 / XYZ Team
  59 #   \ "..."
  60 Enter a Team Drive ID> 1
  61 #--------------------
  62 #[remotedrive]
  63 #scope = drive
  64 #token = #{"access_token":"...","token_type":"Bearer","refresh_token":"...","expiry":"2???-#09-02T17:51:??.???+01:00"}
  65 #team_drive = XXXXXYXYXY
  66 #--------------------
  67 #y) Yes this is OK
  68 #e) Edit this remote
  69 #d) Delete this remote
  70 y/e/d> y
  71 #Current remotes:
  72 #Name                 Type
  73 #====                 ====
  74 #remotedrive          drive
  75 #e) Edit existing remote
  76 #n) New remote
  77 #d) Delete remote
  78 #r) Rename remote
  79 #c) Copy remote
  80 #s) Set configuration password
  81 #q) Quit config
  82 e/n/d/r/c/s/q> q
  83 
  84 rclone listremotes
  85 # remotedrive:
  86 cd ~
  87 mkdir ~/Documents/remotedrive
  88 fusermount -u  ~/Documents/remotedrive
  89 rclone mount remotedrive: Documents/remotedrive # ctrl+c to unmount/quit
  90 

rclone (last edited 2021-09-02 17:11:25 by localhost)