Hi, Thanks for your response!!!
I Tried the above filemask and made out into this script as a test:
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Reconnect at each failure.
option reconnecttime 15
# SFTP/FTP Account
# Directory to switch
# Force binary mode transfer
# Download file to the local directory with get -filemask rule
get remote -filemask="| /testremote/exclude*;/backups*;/dev*;/boot*;/media*;/mnt*;/proc*;/sys*;/tmp*;/run*;" /testremote* i:\backups\domain\testlocal\*
# Synchronize Local < Remote based on last modified time
synchronize local -criteria=time i:\backups\domain\testlocal /testremote
# Exit WinSCP
But I am getting missing parameter for get command within log file.. Also Fils and folder get duplicate multiple times like this below,
Correct, will add all sub directories into this: /testremote*
But non correct, will add all sub directories into this but also adds copy of everything of main directory within this: testremote/testremote/*
And for some reason it is doing the 2nd one.
Log file attached.
I would appreciate your help into this. Thanks :)