code 12 error when specifying files

Matt McCutchen hashproduct+rsync at gmail.com
Fri Aug 4 00:23:03 GMT 2006


Erik,

Include/exclude rules that you specify earlier have higher priority.
If you say --exclude="*" --include=".*", all the files will match the
first rule, and they will all get excluded.  You probably want to put
the include rule first.

To transfer the immediate contents of a directory without recursing
into subdirectories, use --dirs.  Subdirectories themselves are still
transferred to the receiver, but nothing is copied into them.  If you
want to skip copying even the subdirectories, use --exclude="*/" .

Matt


More information about the rsync mailing list