* isn't a shell glob in this case it is a simple pattern wildcard meaning "anything".
On 01/24/2018 02:23 PM, Ken Chase via rsync wrote: > not a bug, buy colour me confused: > > /tmp/foo$ mkdir a > /tmp/foo$ touch a/foo > /tmp/foo$ touch a/.baz > /tmp/foo$ cd .. > /tmp$ rsync -avP --exclude=a/* foo bar > sending incremental file list > created directory bar > foo/ > foo/a/ > > sent 71 bytes received 20 bytes 182.00 bytes/sec > total size is 0 speedup is 0.00 > > /tmp$ ls -la bar > total 20 > drwxr-xr-x 3 user user 4096 Jan 24 14:17 . > drwxrwxrwt 70 root root 12288 Jan 24 14:17 .. > drwxr-xr-x 3 user user 4096 Jan 24 14:16 foo > > /tmp$ ls -la bar/foo > total 12 > drwxr-xr-x 3 user user 4096 Jan 24 14:16 . > drwxr-xr-x 3 user user 4096 Jan 24 14:17 .. > drwxr-xr-x 2 user user 4096 Jan 24 14:16 a > > /tmp$ ls -la bar/foo/a > total 8 > drwxr-xr-x 2 user user 4096 Jan 24 14:16 . > drwxr-xr-x 3 user user 4096 Jan 24 14:16 .. > > where's .baz in the copy? > > how does * match .baz? > > /kc > -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. ke...@futurequest.net (work) Orlando, Florida k...@sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
signature.asc
Description: OpenPGP digital signature
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html