所以有一个 ftp 服务器(在 Windows 上运行),我需要在我的 vps 上同步一些数据。我一直在使用 curlftpfs +rsync 成功完成这项任务,但最近我不得不添加新目录来进行同步,我得到了非常奇怪的结果。
因此,当我使用 ftp protocl 访问 ftp 服务器时,我可以看到以下内容:
$ ftp FTP_HOST
Connected to FTP_HOST (FTP_HOST_IP).
220 Microsoft FTP Service
331 Password required
230 User logged in.
Remote system type is Windows_NT.
ftp> cd "mpr/Monthly Production Reports"
250 CWD command successful.
ftp> ls
227 Entering Passive Mode (10,47,12,185,245,161).
125 Data connection already open; Transfer starting.
02-28-16 11:03PM <DIR> OLD
05-10-16 02:44PM <DIR> 2016 - 01 XYZ Abc
05-10-16 02:44PM <DIR> 2016 - 02 XYZ Abc
05-10-16 02:44PM <DIR> 2016 - 03 XYZ Abc
03-07-17 01:11PM <DIR> 2016 - 10 XYZ Abc
05-10-16 02:44PM <DIR> 2015 - 12 XYZ Abc
04-01-16 02:47PM 6049686 M�n.pptx
06-13-17 01:31PM <DIR> 2016 - 12 XYZ Abc
05-11-17 05:29PM <DIR> 2017 - 01 XYZ Abc
05-11-17 05:28PM <DIR> 2017 - 02 XYZ Abc
06-28-17 10:38AM <DIR> 2017 - 04 XYZ Abc
05-11-17 05:34PM <DIR> 2017 - 03 XYZ Abc
226 Transfer complete.
当我使用 curlftpfs 时很艰难,我可以看到以下内容:
$ curlftpfs "FTP_HOST/mpr/Monthly Production Reports/" "/mnt/ftp3" -o utf8,cache=no -v
* About to connect() to FTP_HOST port 21 (#0)
* Trying FTP_HOST_IP...
* Connected to FTP_HOST (FTP_HOST_IP) port 21 (#0)
< 220 Microsoft FTP Service
> USER _USER_
< 331 Password required
> PASS _PASSWORD_
< 230 User logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> OPTS UTF8 ON
* ftp_perform ends with SECONDARY: 0
< 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> CWD mpr
< 250 CWD command successful.
> CWD Monthly Production Reports
< 250 CWD command successful.
* Remembering we are in dir "mpr/Monthly Production Reports/"
* Connection #0 to host FTP_HOST left intact
$ ls /mnt/ftp3
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
-r-xr-xrwx. 5 root root 2017 Jun 28 01:00 Abc
----------. 1 root root 6049686 Apr 1 2016 Mån.pptx
d---------. 1 root root 0 Feb 28 2016 OLD
有谁知道是什么导致 curlftpfs 将这些目录作为文件读取并更改其名称?