1

I am trying to make a script that will let me update the files on the server by copying then from local. I made a bash script for this task that works on Linux, but a Power Shell script is also needed as my machine at work is running Windows 8.1.

The bash script relies on rsync as follows:

rsync -auv \
    -e "ssh -i super-secure.pem -p 2222" \
    --progress project/$folder/ \
    username@xxx.xxx.xxx.xx:/some/place/on/server/project/$folder

I think I have to use robocopy but I couldn't understand the proper way to use it and how the .pem and port would be passed. Can anyone please point me on the right direction? Please?

  • 1
    I suggest to change tool. SyncThing is very good for synchronization of directories, and has ports on various platforms. – kakaz Aug 25 '18 at 10:58
  • 1
    [Cygwin](https://cygwin.com)? Then you can use `rsync` (and possibly your bash script, for that matter) on both ends. I regularly use Cygwin, including `rsync`, on my Win machines and am a big fan. – B Layer Sep 17 '18 at 23:24

0 Answers0