LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tweaking rsync logs (https://www.linuxquestions.org/questions/linux-software-2/tweaking-rsync-logs-4175465514/)

jwonnacott 06-11-2013 01:22 AM

Tweaking rsync logs
 
Good morning All, I'm new to posting here but I've found the forum a great place for answers over the years!
I use rsync to incrementally back up a large amount of data (total size about 5TB) each night and it works brilliantly.
I'd like to be able to see the file sizes and modify dates in the rsync logs, is this possible?

Many thanks,

James

shm0 06-11-2013 03:43 AM

Quote:

Originally Posted by jwonnacott (Post 4969348)
I'd like to be able to see the file sizes and modify dates in the rsync logs, is this possible?

In the rsyncd.conf file, and under the "log format" parameter, you can add "%l" for length of the file in bytes and "%M" for the last-modified time of the file. Check the man page for full info.

jwonnacott 06-11-2013 04:16 AM

Many thanks shm0.

James

jwonnacott 06-11-2013 04:28 AM

Interesting, I don't have an rsyncd.conf!
However it works if I put it in the command line as log-file-format.

Many thanks for your help.

James.


All times are GMT -5. The time now is 05:36 PM.