-1

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

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

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

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

在您将 open 命令更改为(不带ftps://主机名前缀:

open -u 'user,pass` hostname

我无法弄清楚的是:

  • 如何告诉不要使用前缀duplicity构建open命令。ftps://
  • 如何lftp使用前缀

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

4

2 回答 2

2

当我刚刚编写主机名时,我遇到了与 lftp 与 ftps 一起正常工作的问题。Duplicity 而确实因一些 TLS 意外数据包错误而失败。

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

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

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

于 2019-10-20T17:34:10.823 回答
0

这似乎是错误的,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

于 2018-11-18T10:41:37.717 回答