Topic "temporary file (.filepart?) and synchronize resume on FTPS"

Author Message
[View user's profile]

Joined: 2017-05-03
Posts: 2
Location: Monaco
Good day,
I'm a newbie and I'm asking for support (sorry).
Objective: update a remote FTPS (not SFTP) with the latest content of a local folder, resuming on partial transfer, by scripting.
Problem : I'm unable to see the temporary filename and unable to resume an upload using the command synchronize

Yes, I've read at my best and understood "Transfer to temporary filename is supported with SFTP protocol only and only for binary transfers."
So my first question : why is not possible to create a temporary file to/from an FTP/FTPS with a dedicated temporary extension and rename when complete ?

I see that a "resume" feature works also on FTP/FTPS, but I'm only able able to resume using
"put -resumesupport=on -resume ... " that works (again without temporary filename).
"synchronize -resumesupport=on remote " does not resume (or is missing the same -resume feature necessary for the put).

My "workaround" solution is:

option echo on
option batch on
option confirm off
open FTPSserver_session
put -resumesupport=on -resume -neweronly c:\localfolder\* /
synchronize -delete -preservetime remote c:\localfolder /
put -resumesupport=on -resume -latest c:\localfolder\* /

first put is able to upload and resume incomplete so do most of the hard work at the beginning
first synchronize delete remote files missing from local folder
second put update lastest version of the local files (as it seems that combining on first put -neweronly and -latest miss the timestamp check)

WinSCP 5.9.5 on Win10 64 protocol FTPS by scripting
FTPS server is IIS 7.5 on W7 with "keep partial upload=True" "Allow reading files while uploading=True" "Allow replace on rename=True".

Thanks in advance to everybody that wish help me understand better and/or suggest a "cleaner" way to achieve my objective.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Indeed, the automatic resume is not supported for FTP(S).

Blindly using -resume this way is not a good idea. You may end up combining contents of different versions of files. Do not do that.

There's no magic solution to your problem, unfortunately.
[View user's profile]

Joined: 2017-05-03
Posts: 2
Location: Monaco
anyway thanks Martin
I hope this post may help other newbie (like me) to clear their doubts.
Thanks again for the quick answer and for your commitment.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License