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:
Ben Waugh <[log in to unmask]>
Reply To:
Ben Waugh <[log in to unmask]>
Date:
Thu, 5 Mar 2015 13:05:37 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
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

ATOM RSS1 RSS2