Trying to only download files which got uploaded today

Advertisement

SMaxTH
Joined:
Posts:
3

Trying to only download files which got uploaded today

So everyday I download multiple .zip files from an SFTP server. Also everyday our client uploads new .zip files to this SFTP server, but is not willing to delete the old files. So I download the same files of the last few days + the files which got uploaded today.
I tried a lot but didn't have any success. This is my short script right now (which downloads way to many files and eats my storage space up):
open sftp://user:password@sftp-server.com/ -hostkey=*
synchronize local D:/Test\Download /sftp-server/PDF-files/
I couldn't find an option to download files per date, so maybe you can help me further.
Also important, the .zip files are named:
"name_clientname_YYYYMMDD_NumberOfUploads.zip"
I tried to add
*%TIMESTAMP#yyyymmdd%*.zip
at the end of the path of the files, but that didn't work out.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum