Topic "Re: Correct syntax for file mask when automating via a script?"

Author Message

I have been testing a sync with a remote server and it works fine via the gui but now I want to run a scheduled job to perform the same action, I had been using the keepuptodate command with filetransfer options set.

In the transfer options I have set :

To include files and directories >2015-12-17 00:00 and exclude files and directories <2015-12-17 00:00, I am including *.jpg and excluding *.tiff

So my question as a winscp newbie is what is the correct command / Parameter /syntax to achieve the above?

(Opening a connection to remote server and setting corect home folder on host I can do Cool - keepuptodate works fine but I need to apply the filemask /transfer options to only copy stuff created after the 17th Dec of the file type specified - rather than blanket bomb with 5-6 years of legacy data that would swamp the network and fill up the disks on the dst server.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
I'm not sure, I understand your requirements, but this might do:

keepuptodate -filemask="*.jpg>2015-12-17 | *.tiff"
[View user's profile]

Joined: 2015-12-21
Posts: 1
Location: South-west UK
Excellent that's perfect Very Happy

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License