1

I have a scenario where I have to sync a Linux directory and a windows network path.

For now I'm doing this in two steps

  1. pscp for copying the file from the Linux machine to my local windows machine.
  2. xcopy for copying the file from my machine to the desired windows network path.

All I'm looking for here is is there a way to sycn the Linux directory with the windows network path.

ramp
  • 185
  • 7

1 Answers1

2

I'd recommend you use WinSCP for this task. When using it as a GUI it's a great tool, but crucially, it can also be automated with ease. Here is a formal guide on how automation works and here is a tutorial video showing how it works in practice with a batch file.

You basically want to copy what the guy in the video did, by making a script to log into your remote server and perform a local synchronization. Any other options, such as choosing to mirror, and how to compare existing files, can also be adjusted by looking at the docs.

BoffinBrain
  • 6,337
  • 6
  • 33
  • 59