Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rsync for Windows that runs with Git for Windows mingw tools

I have been using Git for Windows on my Windows 10 box. I use bash and other command line tools that come with it. I need rsync, but found it doesn't come with this package. I googled and found a mingw flavor of rsync. When I run it, it is complaining about missing zstd dll. I suspect I am mixing a tool built for one mingw environment with other.

Where can I find rsync that runs on windows as a portable exe or a version that runs as part of Git for Windows mingw environment?

Thanks for your help!

like image 994
videoguy Avatar asked Dec 02 '25 08:12

videoguy


1 Answers

from Git Bash (run as admin)

mkdir tmp && cd tmp

install zstd unpacker for tar

curl -L https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-v1.5.5-win64.zip --output xxx
unzip xxx
cp zstd-v1.5.5-win64/zstd.exe  'c:\Program Files\Git\usr\bin\'
rm -r * .*

install rsync

curl -L https://repo.msys2.org/msys/x86_64/rsync-3.2.7-2-x86_64.pkg.tar.zst --output xxx
tar -I zstd -xvf xxx
cp usr/bin/rsync.exe 'c:\Program Files\Git\usr\bin\'
rm -r * .*

curl -L https://repo.msys2.org/msys/x86_64/libzstd-1.5.5-1-x86_64.pkg.tar.zst --output xxx
tar -I zstd -xvf xxx
cp usr/bin/msys-zstd-1.dll 'c:\Program Files\Git\usr\bin\'
rm -r * .*

curl -L https://repo.msys2.org/msys/x86_64/libxxhash-0.8.1-1-x86_64.pkg.tar.zst --output xxx
tar -I zstd -xvf xxx
cp usr/bin/msys-xxhash-0.dll 'c:\Program Files\Git\usr\bin\'
rm -r * .*

curl -L https://repo.msys2.org/msys/x86_64/liblz4-1.9.4-1-x86_64.pkg.tar.zst --output xxx
tar -I zstd -xvf xxx
cp usr/bin/msys-lz4-1.dll 'c:\Program Files\Git\usr\bin\'


curl -L https://repo.msys2.org/msys/x86_64/libopenssl-3.1.1-1-x86_64.pkg.tar.zst --output xxx
tar -I zstd -xvf xxx
cp usr/bin/msys-crypto-3.dll 'c:\Program Files\Git\usr\bin\'
cd .. && rm -r tmp
like image 168
Sandre Avatar answered Dec 04 '25 01:12

Sandre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!