After reviewing the log file more carefully, I understood my problems were caused by an incorrect file mask. Now I'm not sure why my "file mask logic" was wrong, but that's for another topic.
- mvanleeu
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="WinSCP-2.log" /loglevel=0 /ini=nul /script="script.winscp"
# Open the session
open sftp://xxxxxx:***@xxxxx.xxxxx.com:50522/ -hostkey="ssh-rsa 4096 XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx="
# Synchronize files newer than current date
synchronize -preview -criteria=size -resumesupport=on -preservetime -filemask="/xxx*_DATA/*xxx.gz>%TIMESTAMP#yyyy-mm-dd%" local X:\xxxxxxx-mirror /
# Disconnect
close
# Exit WinSCP
exit