code 12 error when specifying files

Erik Jacobs erik.jacobs at
Thu Aug 3 12:42:53 GMT 2006


Almost all permutations of trailing slashes and no trailing slashes seem to
produce the same results...

rsync --exclude="*" --include=".*" -Lputzogv user at node::folder/

skipping directory .
client: nothing to do

rsync --exclude="*" --include=".*" -Lputzogv user at node::folder/

skipping directory .
client: nothing to do

rsync --exclude="*" --include=".*" -Lputzogv user at node::folder

client: nothing to do

It appears that, despite specifying files via include and exclude, rsync
still doesn't "really" know what files to be looking for...

For giggles I also tried re-specifying ".*" on the source, but that just
generated a code 12 error again...



-----Original Message-----
From: Paul Slootman [mailto:paul at]
Sent: Thursday, August 03, 2006 8:29 AM
To: rsync at; Matt McCutchen
Subject: Re: code 12 error when specifying files

On Thu 03 Aug 2006, Erik Jacobs wrote:
> That works brilliantly, but I think I'm still doing something wrong.
> rsync --exclude="*" --include=".*" -Lputzogv user at node::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 (user at node::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...

You're now only giving it the directory name. That directory is already
there, so there's nothing to do...

It may be useful to add a trailing slash to the source directory, as
that indicates you want it to operate on the contents of that directory,
and not the directory itself. From the manpage:

    You can think of a trailing / on a source as  meaning "copy  the
    contents of this directory" as opposed to "copy the directory by
    name", but in both cases the attributes of the containing directory
    are transferred  to  the  containing directory  on  the destination.

Paul Slootman
To unsubscribe or change options:
Before posting, read:

More information about the rsync mailing list