Sorry if this is a simple one to solve. I'm very much and old-newbie and need some hand holding. Please be gentle with me.
I have a shell script that manipulates an image and then uploads it every 5 minutes to my host. It has (mostly) worked without fault for 2 years. The line for lftp looks like this.
lftp -e "set net:timeout 20 ; set net:max-retries 4 ; set net:reconnect-interval-base 10 ; put /path/to/file/image.jpg ; exit" -u username,password,host.com
Last night I noticed that many files are not uploading. I suspect that the load on the host is causing the issues.
How do I create a log of failed uploads so that I can give the information to the host for troubleshooting.