Topic "synchronize a directory junction not working since 5.x"

Author Message
stefan_s
[View user's profile]

Joined: 2007-09-18
Posts: 15
Location: munich, germany
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

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
stefan_s
[View user's profile]

Joined: 2007-09-18
Posts: 15
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

Description: (none)

stefan_s
[View user's profile]

Joined: 2007-09-18
Posts: 15
Location: munich, germany
trace files
winscp0E50trace.log (2.98 MB) Private file

Description: OK

winscp0EA0trace.log (2.33 MB) Private file

Description: error

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for the logs.

This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1392

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
stefan_s
[View user's profile]

Joined: 2007-09-18
Posts: 15
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your feedback.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License