now it gives me
io.readproc call blocked
os.tmpname call blocked
the problem is on a wiser with firmware 3.0.0
the file si uploaded with dimension zero kylobyte
io.readproc call blocked
os.tmpname call blocked
the problem is on a wiser with firmware 3.0.0
the file si uploaded with dimension zero kylobyte
Code:
host = 'ip'
user = 'user'
pass = 'pass'
path = 'backup/webserver-' .. os.date('%Y-%m-%d') .. '.zip'
ftp = require('socket.ftp')
ltn12 = require('ltn12')
webrequest = require('webrequest')
data = webrequest('general', 'backup')
res, err = ftp.put({
host = host,
user = user,
password = pass,
argument = path,
source = ltn12.source.string(data)
})
if not res then
log('FTP error', err)
end