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

The 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.

any idea?

link|improve this question
-mirror don't needed here – Lazy Badger Oct 18 '11 at 14:51
option include test.csv – Lazy Badger Oct 18 '11 at 14:52
When you say that the whole directory sync works fine, do you mean that test.csv is only synced when it is modified? – Paul Oct 19 '11 at 0:27
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.