On Wed, May 09, 2001 at 08:57:49AM -0400, [EMAIL PROTECTED] wrote:
> 
> I read through the archives, and have gotten alot of leads, but still
> have not figured out the exact combination for what I am trying to do.
> 
> I am copying individual machine's apache logs to a single machine to
> run log analysis on them.  basically, what I have tried:
> 
> rsync -ra -v --include "/*/2001/05/07/access.log"  \
>              --exclude "*" \
>            --delete-excluded \
>              web1::logs /var/tmp/.LogCache/web1
> 
> The tree of the log file is broken in to
> 
> virtualhostname/YEAR/MONTH/DAY/access.log
> 
> My thinking here is that if I run this in a cron job, I will maintain
> two days of raw log data on the single machine that is doing the
> processing.  Any suggestions would be greatly appreciated.

You need to explicitly include each of the parent directories of the
file you want to include, otherwise the --exclude '*' will prevent
rsync from ever looking down into the subdirectories.

- Dave Dykstra

Reply via email to