I am trying to synchronize a single file with WinScp. But it is downloading that file every time the script runs. But I want it to download that file only when there is any update in the remote file.
Here are the commands I am using in my script
option include /home/username/test.csv synchronize local c:\test /home/username -mirror
username contains more than just
test.csv but I only wants to synchronize
test.csv. The script above downloads only
test.csv, this is ok, But it downloads every time I run the script instead of downloading only when if there is any update in the remote file.
I tried to synchronize whole directory that is working perfectly fine but I needs it to work with the single file.