Topic "Synchronization Scripting not skipping existing files via FTP"

Author Message
NickM
[View user's profile]

Joined: 2017-08-02
Posts: 2
Location: Montreal
Hey all,

I created a simple winscp script to synchornize local files from a machine to a remote FTP server.

Code:
option batch abort
option confirm off
# We tell it which FTP to connect to
open mediasync
# We tell it to synchronize local to Remote path
synchronize -filemask="*.jpg" -criteria="time" -resumesupport="on" remote D:\FILES\Thumbnails /Thumbnails
exit


The files get uploaded however every time the script re-runs it will reupload all the files all over again.

Alternatively I've tried using -criteria="size" however get the same behavior.

Are there any known limitations that would be causing this to happen?
NickM
[View user's profile]

Joined: 2017-08-02
Posts: 2
Location: Montreal
In case other come across this same issue I wanted to update this thread with how I managed to get this working.

Instead of using the FTP protocol I ended up simply switching to a jailed SSH connection and used SCP protocl (instead of FTP).

Once I did this everything started working properly. I suspect that the FTP protocol may be limited to not allow the fetching of proper timestamps.

Hope this helps someone else in the future.

Thanks!
Advertisements

You can post new topics in this forum

Search

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