I originally wrote my script using the korn shell and had to port it to bash on a another server. My script is working find for backing up but noticed that now after the move, I am not getting any output to my log files.
Using Korn shell, this worked for me for some odd reason. This was sending stdout and stderr to a file:
Which part of your pipeline is giving you the errors that you want trapped?
The way you have the pipeline written only gzip errors will be sent to the log file. If you want all errors, from any process in the pipe, written to the log try this:
actually what I was trapping before was the output of find, so that in the log files, it would show what was being backed up such as directories and files. Here is an older log file when it worked using ksh: