Hi,

It seems the leading "/" in the excluded path is interpreted as the root of the source directory hierarchy, in this case /home/CDs/Linux/Wine. So you should try
  --exclude '/wine-*'

This is explained in the rsync man page, quite a long way down, under "ANCHORING INCLUDE/EXCLUDE PATTERNS".

Cheers
Ben

On 05/03/15 06:41, ToddAndMargo wrote:
Hi All,

I am trying to do an rsync and exclude a directory called

    /home/CDs/Linux/Wine/wine-1.7.37

Problem: rsync sync's it anyway, including when I remove
the * and spell it all out.

What am I doing wrong?

rsync -rv --delete --delete-excluded --modify-window=1 \
     --times --inplace --copy-links  \
     --exclude '/home/CDs/Linux/Wine/wine-*' \
     /home/CDs/Linux/Wine /mnt/MyCDs/Linux/.


Many thanks,
-T


--
Dr Ben Waugh                                   Tel. +44 (0)20 7679 7223
Computing and IT Manager                       Internal: 37223
Dept of Physics and Astronomy
University College London
London WC1E 6BT

Reply via email to