From owner-freebsd-stable@FreeBSD.ORG Sun Oct 12 03:49:18 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA6821065693 for ; Sun, 12 Oct 2008 03:49:18 +0000 (UTC) (envelope-from andrewd@webzone.net.au) Received: from smtp.webzone.net.au (smtp.webzone.net.au [210.8.36.14]) by mx1.freebsd.org (Postfix) with ESMTP id 895E68FC0A for ; Sun, 12 Oct 2008 03:49:18 +0000 (UTC) (envelope-from andrewd@webzone.net.au) Received: from ppp121-45-69-26.lns10.adl6.internode.on.net ([121.45.69.26] helo=[192.168.202.99]) by smtp.webzone.net.au with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KorxD-000Mjw-FP; Sun, 12 Oct 2008 13:19:15 +0930 Message-ID: <48F173A8.7000506@webzone.net.au> Date: Sun, 12 Oct 2008 14:18:56 +1030 From: Andrew D User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Gary Kline , 'FreeBSD Stable' References: <20081011234612.GA5515@thought.org> In-Reply-To: <20081011234612.GA5515@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AUTH-WEBZONE: andrewd@webzone.net.au successfully authed as username:andrewd Cc: Subject: Re: rsync or even scp questions.... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2008 03:49:18 -0000 Hi Gary, Gary Kline wrote: > I have two "desktop" computers; three, if you count my new > ThinkPad. The TPad needs a new CAT5 cable, so for now I'm only > considereing the two tower computers. > > On the Ubuntu computer I am /home/kline; on my main computer, > my home is /usr/home/kline. The following sh script worked > perfected when my home on "tao" [FBSD] was /home/kline: > ~kline is an alias for the home directory for the user kline. You can use that in your scripts rather than the full path :) As far as I know it works in all *nix variants. Cheers cya Andrew > P > #!/bin/sh > > PWD=`pwd`; > echo "This directory is [${PWD}]"; > > scp -qrp ${PWD}/* ethos:/${PWD} > ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin > e@ethos:/${PWD} > > Question #1: is there any /bin/sh method of getting rid of the > "/usr"? I switch off between my two computers especially when > get mucked up, as with my upgrade to kde4. (Otherwise, I do > backups of ~kline as well as other critical directories.) > > Is there a way of automatically using rsync rather that my > kwik-and-dirty /bin/shell script? > > thanks, people, > > gary > > > PS: Complete disclosure: it works one way [tao to ethos] because > I have created a /usr/home/kline/* tree on ethos. .... > > PPS: if this seems like a numbskull query, i only caught a few > hours sleep last night! > > > > >