View Single Post

  #6 (permalink)  
Old 05-05-2008
Moody
 
Posts: n/a
Default Re: How to get log file for rsync operation? Does rsync also deleteremote files?

On May 4, 12:33 pm, go...@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


Possibly:

rsync -auvz -e ssh server:/path/source server:/destination/path >>
your custom-Logs file

other wise U may use sometime like below:
rsync -auvz --log-format=FORMAT -e ssh server:/path/source server:/
destination/path

where you may specify the log-format in your rsyncd.conf if you are
running a rsyncd ( daemon ) ( I never tried this, as I've been using
STDOUT option ^ Above ^ for logging the statistics of file
transfers...

Hope this helps..

Regards,




>
> How can I get such a log file otherwise?
>
> BTW: Does rsync delete remote files (from previous rsync operations) if they are not existing
> any more on the source system ?
>
> Goran


Reply With Quote