I'm working on a client's shared hosting server that doesn't allow rsync. (It's on there, just blocked from use, and tech support on $5/month hosting doesn't know what rsync is.)
Anyway, getting rsync running in the home directory turned out to be very easy. If you're running crappy shared Linux hosting with at least SSH access, and have the same problem, try this:
First make a space in your home directory, I used
src for the source code):
mkdir -p ~/opt/src
Then go to http://samba.anu.edu.au/rsync/ and get the latest source. As of now that's 3.0.7, so I did:
curl in my case, because
wget was blocked):
curl -O http://samba.anu.edu.au/ftp/rsync/src/rsync-3.0.7.tar.gz
tar -xzf rsync-3.0.7.tar.gz
Now build it into
Those should generate a bunch of output, hopefully with no errors... if it looks like it worked, run
~/opt/rsync/bin/rsync to confirm.
If that worked, and especially if there is already an rsync on the server but it's blocked, you'll want to give your version precedence in the PATH. So:
Add a line at the end:
Ctrl+W saves, Ctrl+X exits.
(or logout and back in)
which rsync (should be the one you just created)
That's it, unless your hoster put up some other restrictions (like the compiler itself), which is very possible.