SCIENTIFIC-LINUX-USERS Archives

March 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Fri, 6 Mar 2015 19:34:09 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2