【问题标题】:Duplicity does not work with lftp+ftps backend [closed]Duplicity不适用于lftp + ftps后端[关闭]
【发布时间】:2018-11-18 03:01:07
【问题描述】:

尝试使用duplicity 将 Ubuntu 18.04.1 服务器备份到 FTPS(基于 SSL 的 FTP)服务器。密码按照建议存储在FTP_PASSWORD 环境变量中。重复命令是:

duplicity /path/to/backup ftps://user@hostname/some/dir

问题在于,当它转身并调用lftp时,这会转化为以下内容

open -u 'user,pass` ftps://hostname

在您将打开命令更改为(主机名上没有 ftps:// 前缀:

open -u 'user,pass` hostname

我想不通的是:

  • 如何告诉duplicity 不要建立带有ftps:// 前缀的open 命令。
  • 如何让lftp 使用前缀

注意:只要我正确构建了open 命令,FTPS 服务器可以与其他 FTP 客户端正常工作,甚至可以与lftp 正常工作。

【问题讨论】:

    标签: ftps lftp duplicity


    【解决方案1】:

    当我刚刚编写主机名时,我遇到了同样的问题,lftp 在 ftps 上运行良好。 Duplicity 而确实因一些 TLS 意外数据包错误而失败。

    解决方案是: 而不是写 ftps:// 写 ftpes://

    duplicity /path/to/backup ftpes://user@hostname/some/dir
    

    这会改变 lftp 加密凭据的方式和时间。

    【讨论】:

      【解决方案2】:

      这似乎是错误的,https://lftp.yar.ru/lftp-man.html 明确指出网址是可行的

         open [OPTS] site
      
         Select  a  server  by host name, URL or bookmark. When an URL or bookmark
         is given, automaticallycally change the current working directory to the
         directory of the URL.  Options:
      
         ...
              --user user       use the user for authentication
              --password pass   use the password for authentication
              --env-password    take password from LFTP_PASSWORD environment variable
              site              host name, URL or bookmark name
      

      还有

         cmd:default-protocol (string)
                The value is used when `open' is used with just host name without
                protocol. Default is `ftp'.
      

      所以删除 ftps:// 只是让 lftp 通过 ftp 连接,这可能不是你想要的。

      我建议您启用最大重复性。详细程度 '-v9' 并找出 lftp 无法通过 ftps://

      连接的原因

      ..ede/duply.net

      【讨论】:

      • 谢谢。我可以确切地看到 duplicity 正在设置什么,因为它使用所有 LFTP 命令构建了一个临时文件(使用 -c 传递给 lftp)。除了我的目标服务器之外,我将不得不尝试其他一些 FTPS 服务器。
      • 在深入挖掘之后:ftpsite.example.comftp://ftpsite.example.com 都导致 lftp 通过端口 21 连接。而 ftps://ftpsite.example.com 导致 lftp 尝试通过端口 990 连接。这个特定的服务器不支持 990 端口。
      • 更糟糕的是,当您告诉 duplicity 附加到 ftp://somesite 时,它会将 set ftp:ssl-allow false 放入通过 -c 开关传递给 lftp 的命令文件中。这覆盖了将set ftp:ssl-allow true 放入~/.lftprc 文件的可能修复。
      猜你喜欢
      • 2011-05-09
      • 2012-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-04
      • 2022-01-18
      • 1970-01-01
      • 2014-06-21
      相关资源
      最近更新 更多