Post a reply

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

SMaxTH

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.