The -filemask has to be on the same line as synchronize.
                
            
        
    
    
        
        
            
            
                Hello.  I am trying to synchronize only certain files from a folder to a local folder.  Here is my code:
option confirm off
option batch abort
open sftp://seaice@icemonkey.gina.alaska.edu -privatekey=C:\Radar_config\icepirate.ppk
synchronize local "C:\Radar_data\1HrMotion\" /mnt/data/archive/radar-uaf-barrow-seaice-images/2015/02/19/
 -filemask="*.png|*masked.png;*.tif" exit
It still grabs everything from the folder, I can't figure out why the masked.png and .tif files are not avoided.  Thanks for your help.