Topic "Synchronize issue - copies all but loops overwritting all"

Author Message
wildatsun
[View user's profile]

Joined: 2009-06-23
Posts: 1
Location: London
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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
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.

Quote:
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.
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