Rclone 的配置向导相当友好,可以通过命令 Rclone config 进行配置,输入 n 新建:
rclone config
No remotes found - make a newone
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name>
配置 FTP
我们先创建 FTP 配置,名称定为 ftp:
name> ftp
Type of storage to configure.
Enter a string value. Press Enter for the default("").
Choose a numberfrom below, or typein your own value
1/1Fichier
\ "fichier"2/ Alias for an existing remote
\ "alias"3/ Amazon Drive
\ "amazon cloud drive"4/ Amazon S3 Compliant Storage Provider(AWS, Alibaba, Ceph, Digital Ocean, Dreamhost,IBMCOS, Minio, etc)
\ "s3"5/ Backblaze B2
\ "b2"6/ Box
\ "box"7/ Cache a remote
\ "cache"8/ Citrix Sharefile
\ "sharefile"9/ Dropbox
\ "dropbox"10/ Encrypt/Decrypt a remote
\ "crypt"11/FTP Connection
\ "ftp"12/ Google Cloud Storage(thisis not Google Drive)
\ "google cloud storage"13/ Google Drive
\ "drive"14/ Google Photos
\ "google photos"15/ Hubic
\ "hubic"16/ JottaCloud
\ "jottacloud"17/ Koofr
\ "koofr"18/ Local Disk
\ "local"19/ Mail.ru Cloud
\ "mailru"20/ Mega
\ "mega"21/ Microsoft Azure Blob Storage
\ "azureblob"22/ Microsoft OneDrive
\ "onedrive"23/ OpenDrive
\ "opendrive"24/ Openstack Swift(Rackspace Cloud Files, Memset Memstore,OVH)
\ "swift"25/ Pcloud
\ "pcloud"26/ Put.io
\ "putio"27/ QingCloud Object Storage
\ "qingstor"28/SSH/SFTP Connection
\ "sftp"29/ Transparently chunk/split large files
\ "chunker"30/ Union merges the contents of several remotes
\ "union"31/ Webdav
\ "webdav"32/ Yandex Disk
\ "yandex"33/ http Connection
\ "http"34/ premiumize.me
\ "premiumizeme"
Storage>
如上所示,Rclone 支持许多存储,这里输入 11 ,即 FTP:
Storage>11** See help for ftp backend at: https://rclone.org/ftp/**FTP host to connect to
Enter a string value. Press Enter for the default("").
Choose a numberfrom below, or typein your own value
1/ Connect to ftp.example.com
\ "ftp.example.com"
host>
之后会要求输入 host、 user、port、password 和 tls,这个根据实际情况设置即可。确认设置无误后,输入 y :
Remote config
--------------------[ftp]
type = ftp
host =192.168.10.173
user = test
port =21
pass =*** ENCRYPTED ***--------------------
y) Yes thisis OK
e) Edit this remote
d) Delete this remote
y/e/d> y
FTP 配置完成后,输入 q 退出:
Current remotes:
Name Type
========
ftp ftp
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