I have a Windows workstation and a Linux server. So far I used an SFTP client (WinSCP) to connect with the server for updating/downloading files, but I would like software to immediately upload/download changed files. Basically I would like to have the feeling of maintaining only one directory (mirroring in both directions).

Is there software that can do that?


WinSCP can do that too:

  • Local to remote: Keep remote directory up to date:

    This is a built-in functionality and works instantaneously.

    Keep remote directory up to date is a unique feature of WinSCP. With it you may let WinSCP watch for changes in a local directory and have it automatically reflect the changes on the selected remote directory.

    Using it, you can, with some limitations, work with local files using your favorite tools and the effect would be as if you were working with remote files directly. In other words, the feature partially replaces commercial remote directory drive mapping tools.

    enter image description here

  • Remote to local: Keep local directory up to date:

    This is implemented as an extension script. And it cannot work instantaneously, as explained in the extension description:

    WinSCP supports natively keeping a remote directory up to date function thanks to a possibility to get notified by Windows (as a local operating system) about changes in a local directory. None of the supported file transfer protocols unfortunately offer a functionality to watch for changes in a remote directory. So the only solution is to run full remote to local synchronization in regular intervals.

    enter image description here

  • When I choose 'Keep Local Directory up to Date' and click 'ok' with default settings I get error in PowerShell "Error: Could not load file or assembly 'file:///C:\Bin\WinSCP\WinSCPnet.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded". I checked folder and there is WinSCPnet.dll Maybe this is problem with .NET version? I currently using 4.8 – Prime_Bull Aug 6 '19 at 9:37
  • What version of PowerShell do you have? + What does [environment]::Version return in your PowerShell? – Martin Prikryl Aug 6 '19 at 9:47
  • Major Minor Build Revision<br/>2 0 50727 8806 – Prime_Bull Aug 6 '19 at 10:16
  • You didn't answer what version of PowerShell do you have? In any case, your PowerShell loads .NET 2.0, no matter what's the latest .NET version you have installed. – Martin Prikryl Aug 6 '19 at 10:26
  • Ok, everything is working. I needed to upgrade from PowerShell 2.0 to 4.0. Thanks for recommendation. – Prime_Bull Aug 6 '19 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.