gpt4 book ai didi

linux - curlftpfs 错误地复制文件/目录名

转载 作者:太空宇宙 更新时间:2023-11-04 12:25:38 30 4
gpt4 key购买 nike

所以有一个 ftp 服务器(在 Windows 上运行),其中包含一些我需要在我的 vps 上同步的数据。我一直在使用 curlftpfs +rsync 成功地完成这项任务,但最近我不得不添加新目录来进行同步,但我得到了非常奇怪的结果。

所以当我使用 ftp 协议(protocol)访问 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 将这些目录读取为文件并更改它们的名称?

最佳答案

使用 lftp 及其镜像选项。

https://lftp.yar.ru/lftp-man.html

关于linux - curlftpfs 错误地复制文件/目录名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44800498/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com