我安装了备份管理器,并在配置后尝试使用sudo backup-manager
执行它,但出现错误:
Net::FTP>>> Net::FTP(3.08_01)
Net::FTP>>> Exporter(5.72)
Net::FTP>>> Net::Cmd(3.08_01)
Net::FTP>>> IO::Socket::IP(0.37)
Net::FTP>>> IO::Socket(1.38)
Net::FTP>>> IO::Handle(1.36)
Net::FTP=GLOB(0x558b37af3978)<<< 220 server ready - login please
Net::FTP=GLOB(0x558b37af3978)>>> USER XXXXXX
Net::FTP=GLOB(0x558b37af3978)<<< 331 password required
Net::FTP=GLOB(0x558b37af3978)>>> PASS ....
Net::FTP=GLOB(0x558b37af3978)<<< 230 login accepted
Net::FTP=GLOB(0x558b37af3978)>>> TYPE I
Net::FTP=GLOB(0x558b37af3978)<<< 200 TYPE is now 8-bit binary
Net::FTP=GLOB(0x558b37af3978)>>> CWD /
Net::FTP=GLOB(0x558b37af3978)<<< 250 OK. Current directory is /
Net::FTP=GLOB(0x558b37af3978)>>> PASV
Net::FTP=GLOB(0x558b37af3978)<<< 227 Entering Passive Mode (XX,XX,XX,XX,XX,8)
Net::FTP=GLOB(0x558b37af3978)>>> STOR 2mb_file.dat
Net::FTP=GLOB(0x558b37af3978)<<< 421 Timeout
Unable to transfer /var/archives/2mb_file.dat: Timeout
Unable to transfer test file
The upload transfer "ftp" failed.
我尝试将export BM_UPLOAD_FTP_TIMEOUT="30"
增大为export BM_UPLOAD_FTP_TIMEOUT="3000"
,但在一段时间后出现相同的错误...
怎么了?
答案 0 :(得分:0)
通过更新防火墙并为ftp被动模式添加iptables解决了该问题!