Linux command line to create a log file for rsync

command linelinuxrsyncUbuntuunix

I am trying to create a log text file after doing an rsync. I've tried using a command line: rsync -av /source/ /dest/ > log.txt
The text file that was created only shows the file names that are "different" between the source folder & the destination folder, which is close to what I want.

Is there a way for me to create a log file that groups the files that are "different" into files that were modified & created?

Thank you.

Best Answer

Use --log-file option.

rsync -av /source/ /dest/ --log-file=mylog.log
Related Question