From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 23:46:21 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 448E11065692 for ; Sat, 11 Oct 2008 23:46:21 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id F192B8FC13 for ; Sat, 11 Oct 2008 23:46:20 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id m9BNkYAx010523 for ; Sat, 11 Oct 2008 16:46:34 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 11 Oct 2008 16:46:16 -0700 (PDT) Date: Sat, 11 Oct 2008 16:46:16 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20081011234612.GA5515@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_SECURITYSAGE autolearn=no version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: rsync or even scp questions.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2008 23:46:21 -0000 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: 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! -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org