Synchronize issue - copies all but loops overwritting all

Advertisement

wildatsun
Joined:
Posts:
1
Location:
London

Synchronize issue - copies all but loops overwritting all

Windows Server 2003 SP3
WinSCP 4.19

Using windows .bat file to call winSCP with console and script method to connect, am using stored SFTP session details (done through GUI) to connect with.

Remote server is Linux, local is Windows.

Scheduled daily sync of remote to local.

Remote server files include timestamps in filenames which do not show correctly on windows OS (show wrong characters instead of time part of filename), but they do show correctly through winSCP app... need to learn how to overcome this issue as I think this is the root cause of my issues:

Remote file filename to download = filename_2009-05-28_10:08:12.bz2
Local file filename after download = filename_2009-05-28_10%3A08%3A12.bz2

(I think I need to get the ":" removed from the remote source files filenames so that sync works correctly).

ISSUE IS - Synchronise local -criteria=size job copies all folders/files ok but when completed loops back and starts re-downloading and copying over the files it already downloaded... this continues forever in a never ending loop.

On the downloaded saved files the modified date is correct (source file created date) and the created date is the date of download.

Any help greatly appreciated!

Reply with quote

Advertisement

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

Re: Synchronize issue - copies all but loops overwritting all

wildatsun wrote:

Remote server files include timestamps in filenames which do not show correctly on windows OS (show wrong characters instead of time part of filename), but they do show correctly through winSCP app... need to learn how to overcome this issue as I think this is the root cause of my issues:

Remote file filename to download = filename_2009-05-28_10:08:12.bz2
Local file filename after download = filename_2009-05-28_10%3A08%3A12.bz2
Colon in not allowed in Windows file names. Hence WinSCP automatically modifies the filename. Until 4.2 it was not possible to synchronize such files. You may try to upgrade.

ISSUE IS - Synchronise local -criteria=size job copies all folders/files ok but when completed loops back and starts re-downloading and copying over the files it already downloaded... this continues forever in a never ending loop.
Can you try to reproduce the problem on synchronization of single directory with single file and post a log file showing the loop? Also post your full script.

Reply with quote

Advertisement

You can post new topics in this forum