[英]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: 我不知道的是:
duplicity
not to build up the open
command with the ftps://
prefix. duplicity
不要建立带有ftps://
前缀的open
命令。 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.