On Thu, 14 Mar 2013 17:07:45 UTC, "Steven Levine"
<
ste...@nomail.earthlink.net> wrote:
> Which 3.0.9? There have been more than a few 3.0.9 builds. rsync
> --version will tell you. The most recent build is
>
> rsync version 3.0.9 protocol version 31 (os2-perms)
That's the one I'm using.
> > F: is a local drive on an eCS 2.1 box;
> > V: is a LAN Warp Server Advanced share
> > Z: is a NAS4Free (FreeBSD) Samba share
>
> None of this should matter, but it appears you may have a Samba or NAS
> issue. Analysis will tell more.
Sure, that's my assumption too, as I don't see this error when working
with local OS/2 LAN drives.
> > [C:\programs\rsync]rsync f:\temp\temp.txt z:\x\
> >
> > Result: the file is copied to dest first run. Nothing occurs second
> > run, as --update is not specified, and the file isn't newer on source
> > anyway.)
>
> This is not true. With above options, you are basically using rsync
> as a copy replacement. The file will be copied every time, which is
> clearly not what you expected. The -i option is your friend.
OK.
I began with a very option-laden line that was giving the error, and
one-by-one I removed options until I had the minimum testcase.
> When copying to a NAS, you probably want to use at least -t -p.
Preserve permissions & timestamp, sure.
> > [C:\programs\rsync]rsync f:\temp\temp.txt z:\x\
> > rsync: rename "z:/x/.temp.txt.EmotUo" -> "temp.txt": Invalid argument
> > (22)
>
> There is something non-obvious failing. Try the command line
> equivalent
>
> copy f:\temp\temp.txt z:\x\.temp.txt.EmotUo
> rename z:\x\.temp.txt.EmotUo temp.txt
That works when no z:\x\temp.txt is present, but after it's been copied
in place once, of course the rename op doesn't work:
[C:\programs\rsync]copy f:\temp\temp.txt z:\x\.temp.txt.EmotUo
1 file(s) copied.
[C:\programs\rsync]rename z:\x\.temp.txt.EmotUo temp.txt
SYS0317: The system cannot find message 0183
in message file OSO001.MSG.
> Also
>
> rsync -ivvvvvvvv f:\temp\temp.txt z:\x\
>
> might provide some clues.
===========================================
[C:\programs\rsync]rsync -ivvvvvvvv f:\temp\temp.txt z:\x\
FILE_STRUCT_LEN=16, EXTRA_LEN=4
cmd=<NULL> machine=<NULL> user=<NULL> path=z:/x/
cmd[0]=. cmd[1]=z:/x/
note: iconv_open("IBM-850", "IBM-850") succeeded.
(Client) Protocol versions: remote=30, negotiated=30
(Server) Protocol versions: remote=30, negotiated=30
[sender] change_dir(f:/temp)
[sender] make_file(temp.txt,*,0)
[sender] flist start=0, used=1, low=0, high=0
[sender] i=0 f:/temp temp.txt mode=0100666 len=2749 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=208
received 1 names
[Receiver] flist start=0, used=1, low=0, high=0
[Receiver] i=0 1 temp.txt mode=0100666 len=2749 flags=0
recv_file_list done
get_local_name count=1 z:/x/
[Receiver] change_dir(z:/x)
generator starting pid=208
recv_files(1) starting
delta-transmission disabled for local transfer or --whole-file
recv_generator(temp.txt,0)
temp.txt times differ sender 1363229888 receiver 1363282360
send_files(0, f:/temp/temp.txt)
count=0 n=0 rem=0
send_files mapped f:/temp/temp.txt of size 2749
calling match_sums f:/temp/temp.txt
>f..T...... temp.txt
sending file_sum
false_alarms=0 hash_hits=0 matches=0
sender finished f:/temp/temp.txt
send_files phase=1
generate_files phase=1
recv_files(temp.txt)
recv mapped temp.txt of size 2749
data recv 2749 at 0
got file_sum
renaming .temp.txt.ggH6WZ to temp.txt
rsync: rename "z:/x/.temp.txt.ggH6WZ" -> "temp.txt": Invalid argument
(22)
recv_files phase=1
generate_files phase=2
send_files phase=2
send_files finished
total: matches=0 hash_hits=0 false_alarms=0 data=2749
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
client_run waiting on 208
sent 2821 bytes received 31 bytes 1901.33 bytes/sec elapsed 00:00:01
total size is 2749 speedup is 0.96
[sender] _exit_cleanup(code=0, file=main.c, line=1176): entered
rsync error: some files/attrs were not transferred (see previous errors)
(code 2
3) at main.c(1176) [sender=3.0.9]
[sender] _exit_cleanup(code=0, file=main.c, line=1176): about to call
exit(23)
===========================================
Why the protocol=30 ? Shouldn't that be 31?
--
Regards,
Al S.