code 12 error when specifying files
Matt McCutchen
hashproduct+rsync at gmail.com
Wed Aug 2 21:54:14 GMT 2006
On 8/2/06, Erik Jacobs <erik.jacobs at crystalcc.com> wrote:
> We have a file structure on our servers which involves a folder that contains hundreds of info files about particular things that all look like this format: .a.b.c(.old/.new)
>
> But if I choose a wildcard which contains a LOT of files:
>
> rsync user at node::filefolder/.7.*
>
> I get error in rsync protocol data stream (code 12)
>
> What I don't understand is why using the wildcard creates this problem.
The problem in all of these cases is probably that the shell on your
local machine is expanding the wildcard. If you add "echo" at the
beginning of the command line, you will see the exact arguments that
are being given to the rsync daemon. Consider using filters instead
to select the files you want, like this:
rsync --include=".7.*" --exclude="*" user at node::filefolder
Matt
More information about the rsync
mailing list