Rob Bosch
2006-Sep-18 17:13 UTC
Clarification on the RSYNC_RAW_STATUS and RSYNC_EXIT_STATUS
I've noticed that even if rsync has a non-zero exit code on the client that the server still reports an exit status of 0. For example, I've received an error 23 with the following output on the client-side "rsync error: some files could not be transferred (code 23) at main.c(954) [sender=2.6.9cvs]" while the server-side rsync_raw_status and rsync_exit_status were still both zero. The error code returned by rsync on the client side was correctly 23. Will the rsync server-side error status report the same exit code the client reports? It seems like if the client or the server experience an error that the rsync_raw_status or the rsync_exit_status should represent the same value, right? Rob
Wayne Davison
2006-Sep-20 03:35 UTC
Clarification on the RSYNC_RAW_STATUS and RSYNC_EXIT_STATUS
On Mon, Sep 18, 2006 at 11:13:04AM -0600, Rob Bosch wrote:> I've noticed that even if rsync has a non-zero exit code on the client that > the server still reports an exit status of 0.This can happen if the error occurred on the client side because there is no attempt to get the final exit status from the client side to the server side. The only thing this server-side exit status tells you is the exit status of the server process. ..wayne..
Rob Bosch
2006-Sep-20 16:05 UTC
Clarification on the RSYNC_RAW_STATUS and RSYNC_EXIT_STATUS
Wayne, thanks for the clarification. We're going to use a SQL query across the SSH tunnel to the database where we are centralizing the errors. Given this structure we can see if the server reported the error such as an interrupt or some dropped connection. If it didn't we'll post the client result. This covers us in there is a drop in the remote link. Anyway, thanks! Rob "Wayne Davison" <wayned@samba.org> wrote in message news:<20060920033509.GB12185@blorf.net>...> On Mon, Sep 18, 2006 at 11:13:04AM -0600, Rob Bosch wrote: > > I've noticed that even if rsync has a non-zero exit code on theclient that> > the server still reports an exit status of 0. > > This can happen if the error occurred on the client side because there > is no attempt to get the final exit status from the client side to the > server side. The only thing this server-side exit status tells you is > the exit status of the server process. > > ..wayne.. > -- > To unsubscribe or change options:https://lists.samba.org/mailman/listinfo/rsync> Before posting, read:http://www.catb.org/~esr/faqs/smart-questions.html>