On 03/04/2015 10:41 PM, 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



Hi All,

   'wine-*' was it.  Exclude is looking for a "pattern".
I had imprinted "path" on my brain.

  Thank you all for the help me with this!

-T

test run string:

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

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to