Logging only files transferred not directories
christianh at edmi.com.au
Fri Oct 20 02:48:10 GMT 2006
> -----Original Message-----
> From: hashproduct at gmail.com [mailto:hashproduct at gmail.com] On
> Behalf Of Matt McCutchen
> Sent: Friday, 20 October 2006 10:45 AM
> To: Wayne Davison
> Cc: Christian Hack; rsync at lists.samba.org
> Subject: Re: Logging only files transferred not directories
> On 10/19/06, Wayne Davison <wayned at samba.org> wrote:
> > rsync ...CMD... | grep -v '/$'
> OK, that accomplishes what Christian literally asked for, but it might
> be useful to show the directories that actually changed since the
> previous backup.
Linux client is an easy "fix" then. I'll have to get cygwin grep to play
nicely with my windows batch file I guess - I don't think I can pipe can I?
Currently I just > the output into a text file along with a lot of other
info like times etc which is emailed when it's finished. *nix is so much
nicer for this sort of thing...
Matt: Yes it wouldn't show new/renamed directories but only if they were
empty, right? If they had new files as well, you'd see they existed. If the
directory changed (i.e. files in it changed) it would show up too.
I'm not concerned about directories changing really unless I'm missing
something you're thinking of Matt. For me it's more the files that are
changing, so the grep solution will probably do what *I* want.
More information about the rsync