简体   繁体   English

双重性不适用于lftp + ftps后端

[英]Duplicity does not work with lftp+ftps backend

Trying to backup Ubuntu 18.04.1 server using duplicity to a FTPS (FTP over SSL) server. 尝试使用duplicity将Ubuntu 18.04.1服务器备份到FTPS(基于SSL的FTP)服务器。 The password is stored in the FTP_PASSWORD environment variable as suggested. 密码按照建议存储在FTP_PASSWORD环境变量中。 The duplicity command is: duplicity命令为:

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

The problem is that this translates into the following when it turns around and calls lftp 问题是,当它转身调用lftp时,它会转换为以下内容

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

This will not work until you change the open command to (without the ftps:// prefix on the hostname: 在将打开命令更改为(主机名上没有ftps://前缀的情况下),这将无法工作:

open -u 'user,pass` hostname

What I cannot figure out is either: 我不知道的是:

  • How to tell duplicity not to build up the open command with the ftps:// prefix. 如何告诉duplicity不要建立带有ftps://前缀的open命令。
  • How to get lftp to work with the prefix 如何使lftp与前缀一起使用

Note: The FTPS server works fine with other FTP clients, and even works properly with lftp as long as I build up the open command correctly. 注意:只要我正确建立open命令,FTPS服务器就可以与其他FTP客户端正常工作,甚至可以与lftp正常工作。

that seems wrong, https://lftp.yar.ru/lftp-man.html clearly states urls are viable 这似乎是错误的, 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

also

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

so removing ftps:// simply makes lftp connect via ftp which is probably not what you want. 因此删除ftps://只会使lftp通过ftp连接,这可能不是您想要的。

i'd suggest you to enable duplicity max. 我建议您启用双重性。 verbosity '-v9' and find out why lftp fails to connect via ftps:// 详细信息“ -v9”,并找出lftp无法通过ftps://连接失败的原因

..ede/duply.net ..ede / duply.net

I had the same problem that lftp worked fine with ftps when I just wrote the hostname. 我刚写完主机名时,遇到了lftp与ftp兼容的问题。 Duplicity whereas did fail with some TLS unexpected packet errors. 而重复性却因某些TLS意外数据包错误而失败。

Solution was: instead of writing ftps:// write ftpes:// 解决方案是:代替写ftps://而不写ftpes://

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

This changes how and when credentials will be encrypted by lftp. 这改变了凭据将被lftp加密的方式和时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM