Syncronize not updating if the file size is the same

Advertisement

MConnolly
Joined:
Posts:
1
Location:
Dubuque, IA

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum