From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 11:17:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7926037B401 for ; Tue, 15 Jul 2003 11:17:19 -0700 (PDT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E91E43F3F for ; Tue, 15 Jul 2003 11:17:18 -0700 (PDT) (envelope-from kline@thought.org) Received: from thought.org (root@tao [10.0.0.247]) by sage.thought.org (8.12.9/8.11.4) with ESMTP id h6FIHFDu053693; Tue, 15 Jul 2003 11:17:16 -0700 (PDT) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id h6FIHK6h039093; Tue, 15 Jul 2003 11:17:20 -0700 (PDT) (envelope-from kline) Date: Tue, 15 Jul 2003 11:17:19 -0700 From: Gary Kline To: jan.muenther@nruns.com Message-ID: <20030715181719.GC35738@tao.thought.org> References: <6445542$10582835003f141fecbae881.58177731@config4.schlund.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6445542$10582835003f141fecbae881.58177731@config4.schlund.de> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.3i cc: freebsd-questions@freebsd.org Subject: Re: scp+find, a little help please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 18:17:19 -0000 On Tue, Jul 15, 2003 at 05:48:01PM +0200, jan.muenther@nruns.com wrote: > > Hi there, > > > Need to set up scp to copy only newer files and directories between two > > computers. > > > > The basic setup is like: > > scp -pr user@host1:" host2:/dir > > > > What would be a suitable "find command" here? > > Erm, newer than *what*? find needs a file as a comparison parameter to > detetermine whether another file is newer than it or not. I assume you > mean you want to copy only files from host1 to host2 which exist on both > machines, with host1 potentially holding newer versions that should get > synchronized to host2. > > Before you break your neck with (absolutely well possible) scripting > solutions, I suggest you have a look at rsync, which uses SSH for > transport by default now as well. > Or maybe check out rdiff-backup, of which a port has just been submitted > (AFAIK) if a backup is what you're after: > > http://rdiff-backup.stanford.edu/ > Well, I tried both the standford tarballs and the ports' stuff. Both fail with this. Does anybody know what I need to do to fix this? ...Before I scrounge around in the code, that is... . thanks guys. gary ===> Building for librsync-0.9.5.1 cd . && automake --gnu --include-deps Makefile Makefile.am:21: `#' comment at start of rule is unportable Makefile.am:22: `#' comment at start of rule is unportable Makefile.am:23: `#' comment at start of rule is unportable Makefile.am:24: `#' comment at start of rule is unportable automake: configure.in: required file `./depcomp' not found /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/lang-compile.am: AMDEP does not appear in AM_CONDITIONAL gmake: *** [Makefile.in] Error 1 *** Error code 2 Stop in /usr/ports/net/librsync. *** Error code 1 -- Gary Kline kline@thought.org www.thought.org Public service Unix