From owner-freebsd-isp Mon Jun 4 0:41:27 2001 Delivered-To: freebsd-isp@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id B448F37B40A; Mon, 4 Jun 2001 00:41:21 -0700 (PDT) (envelope-from jim@siteplus.net) Received: from veager.siteplus.net ([65.14.122.116]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010604074116.NDPT14869.femail4.sdc1.sfba.home.com@veager.siteplus.net>; Mon, 4 Jun 2001 00:41:16 -0700 Date: Mon, 4 Jun 2001 03:41:02 -0400 (EDT) From: Jim Weeks To: Phillip Salzman Cc: freebsd-isp@freebsd.org Subject: Re: rsync one file In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org OK ;-) This will use rsync's authentication method which is more compatible with cron. #!/bin/sh /usr/local/bin/rsync -avze ssh \ --include=desired.file --exclude=* \ --password-file=/path/to/rsync/passwd/file \ rsync-user@remote.server.com::module \ /destination/directory/ I appreciate your response though, thanks again, -- Jim Weeks On Mon, 4 Jun 2001, Phillip Salzman wrote: > Because it's dropping to an ssh-tunnel(like) system and using the SSH > authentication. > > > --- > Phillip Salzman > phill@FreeBSD.Org > http://www.sysctl.net/ |<- My Website. Are you scared yet? > -------------------------------------------------------------- > "If A equals success, then the formula is A = X + Y + Z. X is work. Y > is play. Z is keep your mouth shut." > -- Albert Einstein > -------------------------------------------------------------- > > On Mon, 4 Jun 2001, Jim Weeks wrote: > > > Thanks ;-) > > > > This works, but why does it circumvent rsync's authentication? > > > > -- > > Jim Weeks > > > > > > On Mon, 4 Jun 2001, Phillip Salzman wrote: > > > > > Try: > > > > > > rsync -avze "ssh" user@hostname:file /path/to/dir/ > > > > > > or > > > > > > rsync -avze "ssh" user@hostname:/path/to/file /path/to/dir/or/file > > > > > > > > > --- > > > Phillip Salzman > > > phill@FreeBSD.Org > > > http://www.sysctl.net/ |<- My Website. Are you scared yet? > > > -------------------------------------------------------------- > > > "If A equals success, then the formula is A = X + Y + Z. X is work. Y > > > is play. Z is keep your mouth shut." > > > -- Albert Einstein > > > -------------------------------------------------------------- > > > > > > On Mon, 4 Jun 2001, Jim Weeks wrote: > > > > > > > I know I must be missing something simple here, but I can't seem to get > > > > this quite right. What would you add to this in order to fetch a single > > > > file? > > > > > > > > rsync -e ssh -avz user@remote.machine.com::module /usr/dir/ > > > > > > > > Thanks, > > > > > > > > -- > > > > Jim Weeks > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-isp" in the body of the message > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message