From owner-freebsd-questions Wed May 22 18:46:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA24356 for questions-outgoing; Wed, 22 May 1996 18:46:01 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA24351 for ; Wed, 22 May 1996 18:45:59 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id SAA11150; Wed, 22 May 1996 18:59:32 -0700 From: Jim Dennis Message-Id: <199605230159.SAA11150@mistery.mcafee.com> Subject: Re: rdist on local machine To: huck@mispwoso.nosc.mil (Craig Huckabee) Date: Wed, 22 May 1996 18:59:32 -0700 (PDT) Cc: freebsd-questions@freebsd.org In-Reply-To: <199605222335.TAA01671@mispwoso.nosc.mil> from "Craig Huckabee" at May 22, 96 07:35:54 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Configuration: > One FreeBSD 2.1 RELEASE server running a web server for 3 virtual hosts. > I've bound each host's IP address to my network card using 'ifconfig alias'. > Problem: > One of the 3 virtual hosts used to be on a seperate machine. It was used > as a development server, so Web pages could be built and tested before > being moved to a 'live' public server. I used scripts that used 'rdist' > to move files from a staging area to the 'live' server. > I've consolidated all of the Web services onto one master server, using > 'virtual hosts' for everything. > > Now I can't get 'rdist' to work with the virtual hosts. For example : > The machine's name is mispwoso, one virtual hostname is products. > mispwoso> rdist -Ryc /u0/stage_area/ products:/u0/products/ > This fails with a 'rcmd : Unrecognized error : 0' > > Is there a way to make rdist work or is there an easy way to get the > same functionality from some other combination of tools? > Am I missing something obvious here? Why not just use 'find | xargs cp' or the old 'tar cf - ./* | (cd $target && tar xpf -)' construct (I'm sure that some sort of switches could be added to that to make it "incremental") If the files are just being moved/copied to new locations on the local hard disks (or even across NFS) it seems like rdist is overkill. > Any help is appreciated, What happens if you try to "rlogin" to the other virtual host(s)? What about "rsh $vhost 'which rdist'" (can you rsh, and can your rsh environment "see" the copy of rdist)? What does your distfile look like? (I use rdist from my internal host to my ftphosts and will be adding my webhost(s) to the mix pretty soon However I suggest that you consider running it through 'ssh' rather than 'rsh') > Craig > huck@nosc.mil