From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Iok4z-0002mJ-AB for garchives@archives.gentoo.org; Sun, 04 Nov 2007 18:20:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id lA4IIoV6026376; Sun, 4 Nov 2007 18:18:50 GMT Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id lA4IEBVb021039 for ; Sun, 4 Nov 2007 18:14:12 GMT Received: by rv-out-0910.google.com with SMTP id b22so1146264rvf for ; Sun, 04 Nov 2007 10:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=LGzU8C/EDY7upCCWs2emqqqKJ0wlXSBaKoH7fNCt4G0=; b=cGpsVJlOD0J9x21VGubp/HZGi0qWIrpLrAPtx+uSiB4G+z2WxFBXNt4AR4Ol1XjCUNZ/kh1PqmGZYGNQDpNT7uccaNOPbSVb32nnOQLg4LQ4mK0+32/lS73E8zvFifa5VUq8m+wClfM/LT5fddJB2rU8hzvHFkN0ym9eGKAX+YE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=uDTujXJo2s0EOmKwrXWvuv9ThaizgUOENQF0d7mYlZecTHThqcFNEpGoXbqsbqRErdt8dyHKwCpMlcH/CwQL76oogI+t5tSRAyf1tXLIjlPqtoDDHKXgmfnNIg0KkLmD+sjBKq3Y11a3/WIAaAI2mtDvcyTzWKtO37h9LVD4JSU= Received: by 10.140.148.3 with SMTP id v3mr1955544rvd.1194200050688; Sun, 04 Nov 2007 10:14:10 -0800 (PST) Received: from ?192.168.0.5? ( [202.180.110.218]) by mx.google.com with ESMTPS id k41sm12015844rvb.2007.11.04.10.14.08 (version=SSLv3 cipher=RC4-MD5); Sun, 04 Nov 2007 10:14:09 -0800 (PST) Message-ID: <472E0BE7.90903@gmail.com> Date: Mon, 05 Nov 2007 07:13:59 +1300 From: Ralph Slooten User-Agent: Thunderbird 2.0.0.6 (X11/20070807) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] rsync via ssh References: <589486.43504.qm@web83109.mail.mud.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b45c389c-4240-4d11-b91b-d1fb057eddd7 X-Archives-Hash: 4e45997f623cf0f49e4c211a62db6f89 I have done a similar thing at work, except what I do is first create an ssh tunnel, then rsync to the locally listening port. Works perfectly. In my setup the remote server is running an SSH server which is not accessible directly. Maybe this will help you. #!/bin/bash SSL_COMMAND="ssh -p 2222 sshuser@myserver -f -N -L 8000:localhost:873" SSL_PID=`ps aux | grep "$SSL_COMMAND" | egrep -v 'grep' | awk '{print $2}'` if [ "$SSL_PID" == "" ]; then echo "=> Creating SSH tunnel to myserver" $SSL_COMMAND SSL_PID=`ps aux | grep "$SSL_COMMAND" | egrep -v 'grep' | awk '{print $2}'` else echo "=> SSH tunnel already exists. Using existing tunnel." fi if [ "$SSL_PID" != "" ]; then echo "=> Connecting through SSH tunnel with PID $SSL_PID" rsync rsync://localhost:8000/wwwroot /mnt/samba/hotcopy/myserver/wwwroot \ -rvtzp --delete --modify-window=1 echo "=> Closing SSH tunnel" kill $SSL_PID else echo "ERROR: SSH Connection failed! The backup could not complete" fi Cheers, Ralph Roger Mason wrote: > Hi Richard, > > Richard Ruth writes: > >> Try adding "-e ssh" to your rsync command. >> Search for "-e" in the rsync man page for an example. >> ======================= >> This is the crontab entry (in rmason's crontab): >> 0,15,30,45 * * * * rmason /usr/bin/rsync -av /home/rmason backup_machine:my >> machine_rmason > > Thanks for the reply. Unfortunately that did not work, the same error > ocurs. > > This is what I have currently: > 0,15,30,45 * * * * /usr/bin/rsync -av -e "ssh" /home/rmason rmason@backup_machine:mymachine_rmason > > I've tried with and without the quotes plus with and without the > rmason@ but none worked. > > I think I'll try scp and see what happens. > > Cheers, > Roger -- gentoo-user@gentoo.org mailing list