I have a sample NAS server (QNAP TS-210), with very limited Linux on-board (although a bit reinforced with Optware/IPKG). I'm a Linux newbie. After digging through Internet I was able to write my own backup script, using rsync for syncing files between NAS hard drive and external USB drives, and with CRON for running this script periodically.
Everything was fine until few days before. E-mails generated by backup script started containing information
IO error encountered -- skipping file deletion for many resources (folders) being backed up. When I run the very same script via SSH I got a lot of error lines saying "
cannot send file with empty name in...", followed by "
rsync error: some files/attrs were not transferred (see previous errors)".
100% of content I'm backing-up comes from Windows (I use NAS only to backup my own computers). This system does not allows to create a file with empty name. This problem exists for only few days and I was not modyfing my backups for over a few weeks (vacation). So this has to be Linux (on-board my NAS) issue.
Question is: what can cause files to appear with empty names? How can I get rid of them (when I
cd to folder mentioned in rsync report, and do
ls -ls, I see nothing like "file with an empty name"), so next rsync pass would end up without such errors. And finally -- how to avoid getting such files in future?