From owner-freebsd-questions@FreeBSD.ORG Fri Aug 27 18:15:21 2010 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 26AF8106564A for ; Fri, 27 Aug 2010 18:15:21 +0000 (UTC) (envelope-from kline@thought.org) Received: from ethic.thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id B851C8FC26 for ; Fri, 27 Aug 2010 18:15:20 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by ethic.thought.org (8.14.3/8.14.3) with ESMTP id o7RIFGuo038114; Fri, 27 Aug 2010 11:15:16 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Fri, 27 Aug 2010 11:15:15 -0700 (PDT) Date: Fri, 27 Aug 2010 11:15:15 -0700 From: Gary Kline To: Jason Message-ID: <20100827181515.GA96499@thought.org> References: <20100827170737.GA96063@thought.org> <4C77F3AC.8020908@gmail.com> <20100827102501.79222db6@eggman> <20100827175141.GB96341@thought.org> <20100827175452.GD53891@eggman.experts-exchange.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100827175452.GD53891@eggman.experts-exchange.com> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. X-Spam-Status: No, score=-2.9 required=3.9 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on ethic.thought.org Cc: FreeBSD Mailing List Subject: Re: how do i scp .dotfiles?? 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: Fri, 27 Aug 2010 18:15:21 -0000 On Fri, Aug 27, 2010 at 10:54:52AM -0700, Jason wrote: > On Fri, Aug 27, 2010 at 10:51:41AM -0700, Gary Kline thus spake: > >On Fri, Aug 27, 2010 at 10:25:01AM -0700, Jason Helfman wrote: > >>On Fri, 27 Aug 2010 13:19:40 -0400 > >>Glen Barber wrote: > >> > >>> On 8/27/10 1:07 PM, Gary Kline wrote: > >>> > > >>> > guys, > >>> > > >>> > this is the start of my master switchover. how to i copy/scp,say, > >>> > ~/.purpur to home/kline/.purple? along with many hundreds of other > >>> > dot files? scp doesn't do it. > >>> > > >>> > tx, > >>> > > >>> > >>> scp user@foo:\.dotfile .dotfile > >>> > >>> Regards, > >>> > >> > >>Use rsync over ssh. > >> > >> > > > > > > i've already done 98 or so straight scp copies. the thing is how > > to use rsync over to an empty ethic? [[ empty == "there are no \ > > dot files not .directories"] i want EVERYTHING from this desktop, > > tao, temp on ethic. > > > > thanks > > > > > You can just use rsync in cooperation with find command. > > I've used it before, but found this as an example with a web search. > rsync -avR remote:'`find /home -name "*.[ch]"`' /tmp/ > > Just reverse the order. this may be close. use the unix tools and glue them together:-) i have this, cobbled together from a prev script: echo "rsync with checksum from directory [${PWD}] to [kline@ethic:${EPWD}]"; rsync --perms --times --update --compress --verbose \ --checksum -e "ssh -i /home/kline/.ssh/tao_nopasswd-id" \ ${PWD} kline@ethic:${EPWD}; if [ $? = 0 ] then echo "rsync transfer went okay, tao to ethic"|mail kline@thought.org else echo "rsync failed to ethic from /home/kline"|mail kline@thought.org fi exit; but this fails ...... any clues?? > > -jgh > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org