03.02.2025, 13:35
Use this for error logging:
Code:
if type(data) ~= 'string' then
log('backup failed', err)
elseif #data == 0 then
log('empty backup', err)
end