Synchronize problem with directory mask newer than 1 year

Advertisement

AvalonNYC
Donor
Joined:
Posts:
4
Location:
New York

Synchronize problem with directory mask newer than 1 year

Using WinSCP 5.9.5 (Build 7441) on Windows Server 2008 R2 with Commander interface connecting to a Windows Server 2008 R2 FileZilla FTP Server.
Trying to synchronize remote directory tree, excluding files and directories older than 1 year.
I'm using the mask *>=1Y; >=1Y/
It appears to be ignoring the mask completely and transferring all the data, so I must be doing something stupid.
Separately, I guess a directory mask can't be like *>=1Y/ since says "mask is invalid" when I put the asterisk in.
Once I get this fixed, will move to scripting it to sync every hour.
Thanks!
  • TestWebsiteDocsSync@tms.cnwglobal.com.log (774.8 KB, Private file)
Description: Log
Description: PDF - Screen prints

Reply with quote

Advertisement

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

Re: Synchronize problem with directory mask newer than 1 year

Time and size constraints are not allowed in directory masks.

---

If they were, it would be */>=1Y

The 1Y/ is an invalid constraint. WinSCP 5.9.x and older silently ignores invalid constraints, effectively making the mask catch-all *.

In WinSCP 5.10 and newer, you will get "Mask is invalid near '=1Y/'."

Reply with quote

Guest

Thanks.
Do you have a suggestion how one would sync a folder tree but exclude folders older than a specified date?

Thanks,

John

Reply with quote

Advertisement

You can post new topics in this forum