synchronize a directory junction not working since 5.x

Advertisement

stefan_s
Joined:
Posts:
18
Location:
munich, germany

synchronize a directory junction not working since 5.x

Script-synchronizing a local directory that contains a junction to another
directory (also local not network) to remote does not work since 5.x

tried: 5.1.7, 5.5.6, new 5.7.6
4.3.6 is working.

for version 5.x it is working, if at the remote (!) side the directory is created before

OS: Windows Server 2003 (with sysinternals tool junction.exe) .
On a Win7 HomePremium with std. tool mklink /J I cannot reproduce.

Using: SFTP, remote: Linux debian

found similar error in forum: forum/viewtopic.php?t=13461

Attached logfiles:
D:\ECGData\Muse.xmlout is the junction that fails.


Full script:
winscp.exe /console /ini=winscp.ini /log=xx.log /xmllog=xx-xml.log /command "open nabios_22"
"option echo on" "option batch on" "option confirm off" "option transfer binary"
"cd /home/de_parexel" "put xx.log.last /home/xx.log" "put xx.run /home//sync_xx.run.log"
"option batch continue" "mkdir sync" "option batch on" "option exclude D:\ECGdata\Holter\"
"synchronize remote -mirror -criteria=both ""D:\ECGData"" sync"
"synchronize local -mirror -criteria=both ""D:\ECGData.in"" sync.back"

Hope it helps.
  • winscp576-synchronize-OK-junction-direxistremote.log (30.61 KB, Private file)
Description: V 5.7.6 synchronize OK, because dir exists on remote side
  • winscp576-synchronize-error-junction.log (26.05 KB, Private file)
Description: V 5.7.6 synchronize fails
  • winscp436-synchronize-OK-juncion.log (22.67 KB, Private file)
Description: V.4.3.6 OK

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: synchronize a directory junction not working since 5.x

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

stefan_s
Joined:
Posts:
18
Location:
munich, germany

same behaviour with 5.8.1 debug
attached 2 logfiles
  • winscp-v581dbg-ok-dir-exists.log (36.09 KB, Private file)
Description: ok, dir exists remote
  • winscp-v581dbg-error.log (27.15 KB, Private file)

Reply with quote

stefan_s
Joined:
Posts:
18
Location:
munich, germany

trace files
  • winscp0E50trace.log (2.98 MB, Private file)
Description: OK
  • winscp0EA0trace.log (2.33 MB, Private file)
Description: error

Reply with quote

Advertisement

stefan_s
Joined:
Posts:
18
Location:
munich, germany

great, the dev build you sent me works with the junction.
let me know if you need the logfile.

WinSCP-20160120rjunction-Portable.zip
WinSCP Version 5.8.2 (Dev Build 6145 2016-01-20)


btw. 5.8.2 is much faster !
when nothing is to transfer
5.7.6 need 3 sec for total sync connection (sftp, private key-login)
5.8.2dev only 600 msec

will wait for the 5.8 release.

many thanks

Reply with quote

Advertisement

You can post new topics in this forum