From owner-freebsd-isp Mon Jun 4 7:14: 8 2001 Delivered-To: freebsd-isp@freebsd.org Received: from sparcticus.sysctl.net (sparcticus.sysctl.net [216.83.242.100]) by hub.freebsd.org (Postfix) with ESMTP id 719E137B405 for ; Mon, 4 Jun 2001 07:14:02 -0700 (PDT) (envelope-from phill@freebsd.org) Received: from localhost (phill@localhost) by sparcticus.sysctl.net (8.10.1/8.10.1) with ESMTP id f54DXmd06755; Mon, 4 Jun 2001 13:33:50 GMT X-Authentication-Warning: sparcticus.sysctl.net: phill owned process doing -bs Date: Mon, 4 Jun 2001 13:33:47 +0000 (GMT) From: Phillip Salzman X-X-Sender: To: Jim Weeks Cc: 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 That looks about right. I've normally used the identity/authorized_keys for that sort of thing in SSH though. --- 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: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message