2

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?

Martin Prikryl
  • 7,756
  • 2
  • 39
  • 73

2 Answers2

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