Where does rsync keep the log file for complete and incomplete data transfers? Where does rsync keep the log file for complete and incomplete data transfers? bash bash

Where does rsync keep the log file for complete and incomplete data transfers?


You can say where the log file is (per the man page documentation):

--log-file=FILE         override the "log file" setting


Logs infos are normaly sent via syslog daemon, when rsync run in daemon mode.

If you want to log someting when using rsync over ssh, you have to put option in command line:

rsync --rsync-path='/usr/bin/rsync --log-file=$HOME/.rsyncd.log' -t Desktop/sony.pdf home@a.b.c.d:

for saving logs in destination host or

rsync --log-file=$HOME/.rsyncd.log -t Desktop/sony.pdf home@a.b.c.d:

for saving logs in source host.


Search for evidence of rsync in the system logs. For example:

sudo grep -ir rsync /var/log

For that matter, you could grep / though that is overkill.