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 1Ip0S3-0000Ez-8h for garchives@archives.gentoo.org; Mon, 05 Nov 2007 11:49:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lA5BlqRw003532; Mon, 5 Nov 2007 11:47:52 GMT Received: from outbound.icp-qv1-irony-out3.iinet.net.au (outbound.icp-qv1-irony-out3.iinet.net.au [203.59.1.148]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lA5BhiBx031194 for ; Mon, 5 Nov 2007 11:43:47 GMT X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CABqQLkfLO50o/2dsb2JhbAA X-IronPort-AV: E=Sophos;i="4.21,372,1188748800"; d="scan'208";a="177921829" Received: from unknown (HELO moriah.localdomain) ([203.59.157.40]) by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 05 Nov 2007 20:38:43 +0900 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id B3835D82B86 for ; Mon, 5 Nov 2007 20:38:43 +0900 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jo25s1El316b for ; Mon, 5 Nov 2007 20:38:40 +0900 (WST) Received: from [192.168.1.7] (unknown [192.168.1.7]) by moriah.localdomain (Postfix) with ESMTP id D6E1AD25603 for ; Mon, 5 Nov 2007 20:38:39 +0900 (WST) Subject: Re: [gentoo-user] rsync via ssh From: "W.Kenworthy" To: gentoo-user@lists.gentoo.org In-Reply-To: References: <472E588B.1060405@podgeweb.com> Content-Type: text/plain Date: Mon, 05 Nov 2007 20:38:39 +0900 Message-Id: <1194262719.23782.7.camel@localhost> 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 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: d00581e0-2cf7-40c2-83bc-399f7a1bac0d X-Archives-Hash: 2816d9447adbf144d62f979e8b85b027 On Mon, 2007-11-05 at 07:34 -0330, Roger Mason wrote: > Shawn Haggett writes: > > > Roger Mason wrote: > >> I have passwordless ssh between mymachine and backup_machine and the > >> rsync command in the crontab runs perfectly from the command line. > >> > >> Does someone know what else needs to be done to get this (seemingly > >> simple!) task to work? > >> > > > > How have you setup the passwordless ssh? If your using keys with the > > ssh keyagent, then when the command is run in cron it wouldn't know > > where to find your ssh-agent... > > Yes, I think that is the problem. I'm going to try the technique > described here: > > http://arctic.org/~dean/rdiff-backup/unattended.html > > Will report back. > > Cheers, > Roger Keep in mind that cron runs with a very limited environment for safety reasons. You have to manually set most env variables and the like. BillK -- gentoo-user@gentoo.org mailing list