Last active
March 15, 2023 13:57
-
-
Save JTBrinkmann/475838560d264dc2178100d12c4f6899 to your computer and use it in GitHub Desktop.
wrapper to make cwrsync and DeltaCopy's rsync work, while allowing to have a different ssh.exe in your PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync.exe --rsh="/bin/ssh" @args | |
# tested 2023-03-15, SSH keys should also work out of the box | |
# for using a different port, do e.g. `--rsh="/bin/ssh -p 1234"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$OldEnvPath = $ENV:PATH | |
$ENV:PATH = "$PSScriptRoot\;$OldEnvPath" | |
rsync.exe @args | |
$ENV:PATH = $OldEnvPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment