code 12 error when specifying files
paul at debian.org
Thu Aug 3 12:28:36 GMT 2006
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 /home/user/folder
> 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.
More information about the rsync