How to discern when like dir names exist in 2 places

Harry Putnam reader at
Mon Apr 13 10:17:20 MDT 2015

with these rsync  rsync [...] /var/ /dir/
                  rsync [...] /etc/ /dir2/
And exclude file: excl


That will exclude both /var/apache2/*
and                    /etc/apache2/*

How can I tell rsync I want /var/apache2 excluded, but not /etc/apache2?
I mean short of using separate excl files for each run
Using something like the start of an absolute name:

Allows both /etc/apache2
and         /var/apache2  to be collected

More information about the rsync mailing list