Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

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

Thanks,

John
martin

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/'."
AvalonNYC

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!