Mirror/Backup from SSH/SFTP to Windows
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?
WinSCP can synchronize directories using /synchronize
or with a script.
Mount your SFTP server as a drive using SFTPNetDrive then robocopy as regular (probably with /Z).