Matt,

That works brilliantly, but I think I'm still doing something wrong.

rsync --exclude="*" --include=".*" -Lputzogv [EMAIL PROTECTED]::folder 
/home/user/folder

result: 
client: nothing to do: perhaps you need to specify some filenames or the 
--recursive option?

I've also tried adding trailing slashes.

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... I guess I'm still a relative rsync 
newb... Specifying the wildcard ([EMAIL PROTECTED]::folder/.*) used to be the 
way to solve this problem... but I can't do that anymore because that's what's 
causing the problem in the first place...

Ideas?

-Erik

-----Original Message-----
From: Matt McCutchen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 02, 2006 5:54 PM
To: Erik Jacobs
Cc: rsync
Subject: Re: code 12 error when specifying files


On 8/2/06, Erik Jacobs <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]::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="*" [EMAIL PROTECTED]::filefolder

Matt


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to