Date: Mon, 4 Jun 2001 03:41:02 -0400 (EDT) From: Jim Weeks <jim@siteplus.net> To: Phillip Salzman <phill@freebsd.org> Cc: freebsd-isp@freebsd.org Subject: Re: rsync one file Message-ID: <Pine.BSF.4.21.0106040330480.12184-100000@veager.siteplus.net> In-Reply-To: <Pine.BSO.4.33.0106040502570.15098-100000@sparcticus.sysctl.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106040330480.12184-100000>