7
2
What I am trying to do is mirror a directory (recursively) from a server I can SSH/SFTP to, to a Windows machine. I want to do this as part of a script, so it can be automated.
I only want to copy new or modified files. I don't want to have to download all the files every time the script runs.
In other words, I'm trying to get the equivalent of RoboCopy /MIR
that will work using SFTP as a source.
What would you recommend?
1Worked for me, thanks. The command I used:
"C:\Program Files (x86)\WinSCP\WinSCP.com" My_Stored_WinSCP_Session /command "synchronize local X:\Local\Target\Directory /the/remote/directory" exit
– Andrew Russell – 2010-05-10T01:29:45.920