glob exclude vs include behaviour

Ken Chase rsync-list-m829 at sizone.org
Wed Jan 24 19:23:39 UTC 2018


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
-- 
Ken Chase - ken at heavycomputing.ca skype:kenchase23 +1 416 897 6284 Toronto Canada
Heavy Computing - Clued bandwidth, colocation and managed linux VPS @151 Front St. W.



More information about the rsync mailing list