19.09.2017, 16:23
Hello
I am trying to secure ftp a backup file to a nas
Does anyone have an example?
I use currently the folowing code wich fails with error : * string: 504 TLS/SSL protection required.
Thanks
Nicky
I am trying to secure ftp a backup file to a nas
Does anyone have an example?
I use currently the folowing code wich fails with error : * string: 504 TLS/SSL protection required.
Code:
-- ftp to NAS
log("System Backup: transfering backup to NAS, host:" .. FTP_TARGET_IP .. ", target:" .. target)
res, err = socket.ftp.put({
host = FTP_TARGET_IP,
user = FTP_TARGET_LOGIN,
password = FTP_TARGET_PW,
type = "i",
argument = target,
source = ltn12.source.file(io.open(dst, "rb")) })
if (err) then
log(err)
log(res)
alert("System Backup: failed, could not ftp to NAS, host:" .. FTP_TARGET_IP .. ", target:" .. target)
end
Thanks
Nicky