Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2001 13:33:47 +0000 (GMT)
From:      Phillip Salzman <phill@freebsd.org>
To:        Jim Weeks <jim@siteplus.net>
Cc:        <freebsd-isp@freebsd.org>
Subject:   Re: rsync one file
Message-ID:  <Pine.BSO.4.33.0106041332571.15098-100000@sparcticus.sysctl.net>
In-Reply-To: <Pine.BSF.4.21.0106040330480.12184-100000@veager.siteplus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.33.0106041332571.15098-100000>