Require Synchronization for all files except last file

Advertisement

vishalmay
Joined:
Posts:
2
Location:
BENGALURU

Require Synchronization for all files except last file

Dear Team,

I am running Synchronization for local and remote.
In Local, i require all files to be synched except last file.

currently this is my script

open vishal@10.176.12.5
synchronize local "d:\cmdlogs\KKBNGBTPMBS02\"
exit

Reply with quote E-mail

Advertisement

vishalmay
Joined:
Posts:
2
Location:
BENGALURU

Re: Require Synchronization for all files except last file

thank you for reply.

yes you can say new file.

ex: there will be some 5 files in folder.
there will be 5 MB limit for each file
1st file will be generated, after 5MB second will be generated. other files follow the same
But last file will be the new one which will be modified upto 5MB
so i dont want to syn new or last file to local folder
please confirm how to do it.

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: Require Synchronization for all files except last file

OK, see this example. It does opposite of what you need, so it should be pretty easy to modify it:
https://winscp.net/eng/docs/script_download_most_recent_file

Alternative, and way easier, solution is to filter files smaller than 5 MB:
synchronize local -filemask="|<5M" "d:\cmdlogs\KKBNGBTPMBS02\"
See https://winscp.net/eng/docs/file_mask

Reply with quote

Advertisement

You can post new topics in this forum