From: Dan Stromberg on
On Sun, 04 May 2008 07:33:43 +0000, 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?
>
> BTW: Does rsync delete remote files (from previous rsync operations) if
> they are not existing any more on the source system ?
>
> Goran

rsync -avpl --progress --stats should be pretty close to what you want.

From: John Murtari on
goran(a)lycos.com (Goran Ivanic) writes:

> 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?
>
> BTW: Does rsync delete remote files (from previous rsync operations) if they are not existing
> any more on the source system ?

You really should take some time and look at a good 'man' page on
rsync. Everything you want is supported, here a few starter options:

-v, --verbose
This option increases the amount of information you are given during the transfer. By default, rsync works
silently. A single -v will give you information about what files are being transferred and a brief summary at
the end. Two -v flags will give you information on what files are being skipped and slightly more information
at the end. More than two -v flags should only be used if you are debugging rsync.

--delete
This tells rsync to delete any files on the receiving side that aren’t on the sending side. Files that are
excluded from transfer are excluded from being deleted unless you use --delete-excluded.

--log-format=FORMAT
This allows you to specify exactly what the rsync client logs to stdout on a per-file basis. The log format
is specified using the same format conventions as the log format option in rsyncd.conf.


Hope this helps!
--
John
___________________________________________________________________
John Murtari Software Workshop Inc.
jmurtari(a)following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/