can rsync server side returns some status code to rsync client?

2014-05-06 Thread Tuma Wang
Hi, I'm wondering, when using rsync, other than just transferring files, can the server side returns some status code to the client side? For example, if the client wants the server to check sth, how can the server side returns SUCCESS or FAIL or more complicated value to the client? does rsync ha

redirect rsync's log to a log file together with other program

2014-03-26 Thread Tuma Wang
Hi, I'm writing a program to use rsync to do something, and I want to keep the output of both in the same log file. My program is writing log to /var/log/my.log via syslog() LOG_LOCAL0. I tried to use rsync's '--log-file=/var/log/my.log' option; it seems to work to some extent, but have some probl