rsync
for Windows.
See releases page for binaries.
I had a bad time trying to find a working rsync
for Windows. I read some blogs about cwRsync, but I just couldn't get it to work.
Finally, I repacked the rsync.exe
, ssh.exe
and cygpath.exe
from Cygwin, and wrote a Rust
wrapper around it.
It works for me, and I hope it works for you too.
- Goto releases page & download
rsync-win.zip
. - Extract. Keep
cygwin64
folder along side withrsync-win.exe
. - Add the directory of
rsync-win.exe
toPATH
. - Restart your terminal and try executing
rsync-win -h
.
-
bandwidth limit
2048 KBytes/s
,-a
,-v
, show progress, copy from remote machine to local, exclude*.log
files, and save to./target/
directory.rsync-win --bwlimit=2048 -av --exclude='*.log' --progress -s <REMOTE USER>@<REMOTE_MACHINE>:<REMOTE_PATH> -d ./target/
-
Help
Rsync for Windows Allowed formats for <SRC>/<DEST>: local: C:/path/to/file ssh: [USER@]HOST:/path/to/file (use --ssh-port to specify the port) rsync: rsync://[USER@]HOST[:PORT]/path/to/file Usage: rsync-win.exe [OPTIONS] --src <SRC> --dest <DEST> Options: -i, --identity <IDENTITY> SSH identity file [default: "C:/Users/<YOUR USER NAME>/.ssh/id_rsa"] -v, --verbose -q, --quiet -c, --checksum -a, --archive -r, --recursive --delete --exclude <EXCLUDE> --partial --progress --bwlimit <BWLIMIT> -4, --ipv4 -6, --ipv6 --ssh-port <SSH_PORT> -s, --src <SRC> -d, --dest <DEST> -h, --help Print help -V, --version Print version
Some blogs: