rsync error: protocol incompatibility (code 2) at compat.c(171) [sender=3.0.6]

If you have this kind of error:

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
protocol version mismatch — is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(171) [sender=3.0.6]

Fix.

vi /root/.bashrc

if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi

Leave a Reply

Your email address will not be published. Required fields are marked *