I'm trying to do a recursive put or mirror to an sftp server but am
not able to. I am able to connect to the sftp server and send plain
files with no problem.
Here is the local structure (ls -RF on local):
.:
foo test1/
./test1:
foo test11/
./test1/test11:
foo
If I do "mput *" only the first file, foo, is transfered. Here's the
debug 9 output:
---- path on wire is `foo'
---> sending a packet, length=20, type=3(OPEN), id=25
<--- got a packet, length=10, type=102(HANDLE), id=25
---- got file handle 31 (1)
---> sending a packet, length=22, type=10(FSETSTAT), id=26
---> sending a packet, length=22, type=10(FSETSTAT), id=27
---> sending a packet, length=10, type=4(CLOSE), id=28
<--- got a packet, length=33, type=101(STATUS), id=26
<--- got a packet, length=21, type=101(STATUS), id=27
<--- got a packet, length=21, type=101(STATUS), id=28
ls on remote shows:
-rw-rw-rw- 1 user group 0 Jun 27 09:30 foo
If I do "mirror -R", again only the first file, foo, is transfered.
Here's the debug 9 output:
---> sending a packet, length=18, type=17(STAT), id=29
---> sending a packet, length=20, type=17(STAT), id=30
<--- got a packet, length=21, type=105(ATTRS), id=29
<--- got a packet, length=21, type=105(ATTRS), id=30
---- path on wire is `.'
---> sending a packet, length=10, type=11(OPENDIR), id=31
<--- got a packet, length=10, type=102(HANDLE), id=31
---- got file handle 31 (1)
---> sending a packet, length=10, type=12(READDIR), id=32
<--- got a packet, length=102, type=104(NAME), id=32
---- file name count=1
---> sending a packet, length=10, type=12(READDIR), id=33
---> sending a packet, length=10, type=12(READDIR), id=34
<--- got a packet, length=22, type=101(STATUS), id=33
---- eof
---> sending a packet, length=10, type=4(CLOSE), id=35
---- path on wire is `test1'
---> sending a packet, length=18, type=14(MKDIR), id=36
<--- got a packet, length=22, type=101(STATUS), id=34
<--- got a packet, length=21, type=101(STATUS), id=35
<--- got a packet, length=36, type=101(STATUS), id=36
---> sending a packet, length=24, type=17(STAT), id=37
---> sending a packet, length=26, type=17(STAT), id=38
<--- got a packet, length=33, type=101(STATUS), id=37
mirror: Access failed: File not found (/Usr/iris/test1)
<--- got a packet, length=33, type=101(STATUS), id=38
---- path on wire is `test1'
---> sending a packet, length=22, type=9(SETSTAT), id=39
<--- got a packet, length=21, type=101(STATUS), id=39
Total: 1 directory, 1 file, 0 symlinks
2 errors detected
ls on remote shows:
-rw-rw-rw- 1 user group 0 Jun 27 09:33 foo
Any ideas? I'm running lftp 3.5.10. I realize there is a much newer
version, but reading through the change history I don't see any
reference to fixes for this problem.
thanks,
Matt