Topic "how to ftp only the files modifed with in a time frame"

Author Message
MKNENI
[View user's profile]

Joined: 2008-05-14
Posts: 2
using sftp protocal.

Did some search but couldn't find a solution.

I need to download all the log files modified between May 10th 3.00 pm to 6.00 pm
Is there a way to do this.

This script downloads all the log files.
open userid:password@server
option transfer ascii
get *.log
close

thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
Does the log file name include the time?
_________________
Martin Prikryl
MKNENI
[View user's profile]

Joined: 2008-05-14
Posts: 2
Unfortunately no. I will have to go by mtime of the file.

Thanks
MKNENI
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
Only think I can imagine is to use some smart shell scripting to move away the files you want to download to some temporary directory (using scripting command call). Then download the content of the temporary directory. Then move the files back to original directory.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License