apt install fuse
apt-get install rclone
mkdir test   #创建文件夹
rclone config #开始配置

2020/03/04 12:09:18 NOTICE: Config file "/root/.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   #输入n
name> kenshin   #输入名称,要记住
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> 7  #因为我想试试效果,挂载Googledrive,所以选7
Google Application Client Id - leave blank normally.
client_id>     #留空
Google Application 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 or Y didn't work
y) Yes
n) No
y/n> n  #输入n
If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?client_id=
Log in and authorize rclone for access
Enter verification code> 4/xAGbcyfAafefegrsgyjsatj   #打开上面的链接,登录
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y    #确认
Name                 Type
====                 ====
kenshin              drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q   #输入q退出

这样就差不多了,使用命令rclone mount DriveName:Folder LocalFolder --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000
挂载。其中DriveName为初始化配置填的nameFolderGoogle Drive里的文件夹,LocalFolderN1



转载请注明出处:咕鸽 » N1使用rclone挂载
分享到: 更多 (0)

谈笑风生 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址