aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-17 10:59:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-17 10:59:13 -0300
commit7ef6a0b844d26e75188ea3609f79b3affafc9083 (patch)
treed432c36288bf89e7f592c8e8fe12aa78b7102d8c /handlers
parent40155781065eb7254eb9fc9c48bd85b0b8ace4c0 (diff)
downloadbackupninja-7ef6a0b844d26e75188ea3609f79b3affafc9083.tar.gz
backupninja-7ef6a0b844d26e75188ea3609f79b3affafc9083.tar.bz2
Fixing ssh_cmd and RSYNC_RSH at rsync handler
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 8f638d7..be97773 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -279,7 +279,7 @@ function eval_config {
nice=""
fi
- ssh_cmd="ssh -T -o PasswordAuthentication=no $host -p $port -l $user -i $id_file"
+ ssh_cmd="ssh -T -o PasswordAuthentication=no -o Hostname=$host -p $port -l $user -i $id_file"
if [ "$from" == "remote" ] || [ "$dest" == "remote" ]; then
if [ "$testconnect" == "yes" ] && [ "$protocol" == "ssh" ]; then
@@ -913,7 +913,7 @@ function set_rsync_options {
else
debug RSYNC_RSH=\"$ssh_cmd\"
echo RSYNC_RSH=\"$ssh_cmd\" >> $log
- RSYNC_RSH="$ssh_cmd"
+ export RSYNC_RSH="$ssh_cmd"
fi
fi