Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
1  
-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
1  
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
    
The option include cannot affect, if the file is synced or not when changed. So I do not believe that full dir sync works correctly, while single file dir does not. –  Martin Prikryl Apr 11 '13 at 9:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.