code 12 error when specifying files

Wayne Davison wayned at samba.org
Fri Aug 4 00:58:13 GMT 2006


On Thu, Aug 03, 2006 at 08:16:54AM -0400, Erik Jacobs wrote:
> If I add the recursive option, it works, but I don't want to recurse
> -- I only want to look at the files in this folder...

On a modern rsync, you specify -d instead of -r to copy directories by
name, or the immediate contents of a directory if the dir has a trailing
slash.  Without -d, use -r and exclude recursed files:

    --exclude='/*/*'

..wayne..


More information about the rsync mailing list