code 12 error when specifying files
Paul Slootman
paul at debian.org
Thu Aug 3 13:42:00 GMT 2006
On Thu 03 Aug 2006, nathan r. hruby wrote:
> >
> >>From the manpage:
> >
> > Note also that host and module references don't require a trailing
> > slash to copy the contents of the default directory.
> >
> >So in this case the trailing slash wouldn't make a difference.
>
> In my case I'm not grabbing the default directory of a module, but a
> subdirectory of it.
Then it should make a difference.
> For example, for module x with path set to /home, tying to sync the
> contents of "server::x/user1/public_html/" yields me the directory
> public_html, the the files within it.
>
> Is that the correct behavior?
It's not what I'm seeing:
(In remote's "x" module directory)
remote# mkdir x y z
remote# touch x/1 x/2 x/3
local# rsync remote::x/x
drwxr-xr-x 30 2006/08/03 15:31:19 x
local# rsync remote::x/x/
drwxr-xr-x 30 2006/08/03 15:31:19 .
-rw-r--r-- 0 2006/08/03 15:31:19 1
-rw-r--r-- 0 2006/08/03 15:31:19 2
-rw-r--r-- 0 2006/08/03 15:31:19 3
local# rsync -av remote::x/x/ localdir
receiving file list ... done
created directory localdir
./
1
2
3
sent 138 bytes received 225 bytes 726.00 bytes/sec
total size is 0 speedup is 0.00
local# ls -l localdir
total 0
-rw-r--r-- 1 root root 0 Aug 3 15:31 1
-rw-r--r-- 1 root root 0 Aug 3 15:31 2
-rw-r--r-- 1 root root 0 Aug 3 15:31 3
No "x" directory created...
Paul Slootman
More information about the rsync
mailing list