Confusing error if rdiff-backup cannot be found on remote server
When rdiff-backup cannot be found on the remote server, the error message emailed is "Fatal: rdiff-backup does not have the same version at the source and at the destination."
This is confusing as it implies that rdiff-backup was found remotely but it has the wrong version.
If rdiff-backup is installed in different places on each server (Ubuntu and Debian packages install to different places), then the user will not know the true problem.
When rdiff-backup cannot be executed on the remote server, there should be a different error message.
Possible fix, in file "rdiff":
ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup"
40c40,45
< echo version=`ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup"` if [ $? = 127 ]; then fatal "Unable to execute rdiff-backup on remote server. It probably doesn't exist in the same path as on this machine" else echo $version fi
(from redmine: created on 2009-08-19, closed on 2010-01-09)