get * -resume -neweronly
The old files don't have new content, the timestamp is just being touched/updated for some reason.
For a given file naming scheme, can I ONLY download the file with the most recent timestamp or sort by file name DESCENDING and start my job downloading that way so start with the most recent?
For example if I have a file named:
I've got the date in the filename so if I tell it to download the one with the largest numbers in it first (or exclusively) I can get the most recent file.
Right now I'm literally just using a Windows batch file that launches WinSCP and then executes a text script. I see there are scripts to try and connect via PowerShell and then only download the most recent file, but I don't know how to connect via PowerShell in my scenario where we don't use a password at all.
Instead we're connecting with a private key and passphrase and I don't know how to connect in the PowerShell script that way.