code 12 error when specifying files

Paul Slootman paul at debian.org
Thu Aug 3 13:12:40 GMT 2006


BTW, I see no difference when using an rsync daemon or an ssh
connection, with the given problem:

remote# mkdir /tmp/test; cd /tmp/test; touch a b c .a .b .c
remote# ls -la
total 0
drwxr-xr-x  2 root root 57 Aug  3 15:06 .
drwxrwxrwt  3 root root 80 Aug  3 15:05 ..
-rw-r--r--  1 root root  0 Aug  3 15:06 .a
-rw-r--r--  1 root root  0 Aug  3 15:06 .b
-rw-r--r--  1 root root  0 Aug  3 15:06 .c
-rw-r--r--  1 root root  0 Aug  3 15:06 a
-rw-r--r--  1 root root  0 Aug  3 15:06 b
-rw-r--r--  1 root root  0 Aug  3 15:06 c

(The /tmp/test directory is module x for the daemon.)

local# rsync remote::x
drwxr-xr-x          57 2006/08/03 15:06:57 .
-rw-r--r--           0 2006/08/03 15:06:57 .a
-rw-r--r--           0 2006/08/03 15:06:57 .b
-rw-r--r--           0 2006/08/03 15:06:57 .c
-rw-r--r--           0 2006/08/03 15:06:57 a
-rw-r--r--           0 2006/08/03 15:06:57 b
-rw-r--r--           0 2006/08/03 15:06:57 c

local# rsync --exclude='*' --include='.*' remote::x
drwxr-xr-x          57 2006/08/03 15:06:57 .

local# rsync --exclude='*' --include='.*' remote:/tmp/test/
Password: 
drwxr-xr-x          57 2006/08/03 15:06:57 .


Note that the trailing slash *is* needed on the ssh connection, see
without:

local# rsync --exclude='*' --include='.*' remote:/tmp/test 
Password: 
(nothing)



The problem is with the excludes and includes; unfortunately I can never
get it when those two are combined :-/


Paul Slootman


More information about the rsync mailing list