How to transfer files with WinSCP that are older than N days? It seems there is no such option inside. But could it be done with scripting/cmd mix?
Asked
Active
Viewed 1,906 times
2 Answers
2
Use a file mask with a time constraint:
Upload:
put C:\local\path\*.*<5D /remote/path/
Download:
get /remote/path/*.*<5D C:\local\path\

Martin Prikryl
- 7,756
- 2
- 39
- 73
1
find
can find the files you're interested in, and rsync
can take the resultant list and process it.

Ignacio Vazquez-Abrams
- 45,939
- 6
- 79
- 84
-
this question about WinSCP taht is Windows application.. your answer about *nix tools. PS: i know that rsync exist for windows, but winscp work not only with sftp. – Konstantin Petrukhnov Oct 05 '10 at 10:55
-
1`find` is also available for Windows. http://gnuwin32.sourceforge.net/ – Ignacio Vazquez-Abrams Oct 05 '10 at 10:57