Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Syncronize not updating if the file size is the same

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
MConnolly

Syncronize not updating if the file size is the same

Hello,

I'm running an script that syncronizes content from a local directory to an FTP site.
We're using WinSCP version 5.13
The .bat file is calling the script correctly...
"C:\Program Files\WinSCP\WinSCP.exe" /ini=nul /script=C:\AutoJobs\ColorWeb\sync-pressrunplanner-pages.txt

exit


The script itself works for new files and for files where the size has changed...

echo on

open ftp://[MyUserName]:[MyPassword]@[MyServer]
synchronize remote -delete -filemask="| */" Y:\ /
close
exit


I tried adding the -critera=time flag, but that doesn't seem to be working for me...
echo on

open ftp://[MyUserName]:[MyPassword]@[MyServer]
synchronize remote -delete -criteria=time -filemask="| */" Y:\ /
close
exit


Is my syntax wrong for the -criteria flag? I saw in the documentation I need to use SFTP instead of FTP if I want to use the "preserve timestamps" option, but I don't think that applies to me here.