I am working to implement a log backup solution which is going to rely on using rsync to move data off of a local server and on to a remote logging server. We have two concerns - the first is that as of now I have not implemented any logging which needs to be done. The man page for rsync is huge, and we're not using an rsync server, just an oncall rsync to push data from the client (client initiated) to the storage server.
Off the top of anyones head, are there any logging options for failures mid transfer, or anything like that?
Also, due to the nature of how we are implementing it, the shell script first tries to ping the the local backup server. If the ping is successful, it uploads the files. However, if the ping is unsuccessful, it will instead upload to a georedundant backup server. This leaves a hole if the main server goes down midway through the rsync. Is there any way to specify a backup destination in the case of a failure mid transfer?