Let’s say, you have some cheap webhosting provider which told you, you would have access via SSH just to let you determine, that even rsync is not available. Well, here we go. You can create a build with statically linked libraries, which will hopefully work for you.
docker run -it debian /bin/bash apt update apt install -y gcc wget libssl-dev libxxhash-dev libzstd-dev liblz4-dev build-essential libpopt-dev zlib1g-dev wget https://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz tar xzf rsync-3.0.9.tar.gz cd rsync-3.0.9 ./configure make CFLAGS="-static" EXEEXT="-static" strip rsync-static
Thanks to the source, I’ve used to compile the commands.
Side note: Yes, you should update rsync to the latest version. Sadly, it is not intended to create static builds anymore. Thus, you will receive a lot of errors. Adding (https://github.com/curl/curl/issues/2199) “-ldl -lpthread” are the first steps and rsync can be compiled, but I have received a segmentation fault.