View Single Post

  #8 (permalink)  
Old 05-05-2008
Scott McMillan
 
Posts: n/a
Default Re: How to get log file for rsync operation? Does rsync also delete remote files?

On 04 May 2008 07:33:43 GMT, goran@lycos.com (Goran Ivanic) wrote:

>I am planning to use rsync for a daily backup to a remote backup server.
>
>When I read the rsync manual it does not become clear on how to write a log file for the rsync operation.
>
>I am missing options like:
>
>rsync ..... -logfile=\home\backup\rsync.log -logmode=append ......
>
>Did I miss these options?
>
>I want to write (append !!) to the log file:
>
>- Which files were transferred
>- When the rsync operation took place
>- How much bytes were transferred (total sum) in the rsync operation
>
>How can I get such a log file otherwise?


With simple redirection:
rsync (your options) >>yourlogfile 2>&1

>
>BTW: Does rsync delete remote files (from previous rsync operations) if they are not existing
>any more on the source system ?


It can. See the --delete option(s) in the man page.



Scott McMillan
Reply With Quote