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

martin

Re: Scripting for downloading Folder & Files from remote server

If you want to download the latest subfolder (and providing there are only subfolders, no files directly in the parent folder), just use the -latest switch:
https://winscp.net/eng/docs/scriptcommand_get#latest
bcrooms

Scripting for downloading Folder & Files from remote server

I am needing to download folders & files from a remote linux server to a network drive.

I have my drive mapping working in my script but I am unable to get the file/directory masks working correctly.

Basically the remote linux server does a database backup at 2:00am every day and I want to copy the created folder every day at 2:30am after the remote server tasks finishes.

The remote directory already has many folders in it from the daily tasks running for over a year. I don't need to copy all of those going forward, I only need the newest folder created each day.

Someone help me out.

Brandon