From owner-freebsd-questions@FreeBSD.ORG Sun Aug 29 01:05:41 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 74D4810656AB for ; Sun, 29 Aug 2010 01:05:41 +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 27FED8FC08 for ; Sun, 29 Aug 2010 01:05:40 +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 o7T15WRO009863; Sat, 28 Aug 2010 18:05:33 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 28 Aug 2010 18:05:32 -0700 (PDT) Date: Sat, 28 Aug 2010 18:05:31 -0700 From: "'Gary Kline'" To: Matthew Seaman Message-ID: <20100829010531.GA1471@thought.org> References: <20100827170737.GA96063@thought.org> <26118_1282929673_4C77F409_26118_366_1_D9B37353831173459FDAA836D3B434999FDCA57D@WADPMBXV0.waddell.com> <20100827211306.68e261be.freebsd@edvax.de> <20100828070231.GA98502@thought.org> <4C78E509.6020701@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C78E509.6020701@infracaninophile.co.uk> 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: Gary Gatten , Polytropon , 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: Sun, 29 Aug 2010 01:05:41 -0000 On Sat, Aug 28, 2010 at 11:29:29AM +0100, Matthew Seaman wrote: > On 28/08/2010 08:02:31, 'Gary Kline' wrote: > > On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote: > >> On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten wrote: > >>> Rename them, copy, then rename them back? > >> > >> Not good for a whole bunch of files; in this case: tar them together, > >> transfer the archive, untar it; rename afterwards if needed. :-) > >> > > > > If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to > > ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using > > find to collect a tarball may work. > > I've been reading this thread, and I'm somewhat at a loss as to why you > need to rename all of the dotfiles at all, Gary. Dotfiles are just > ordinary files, and programs like find(1), scp(1) or tar(1) will handle > them just like any other file. The only difference is that shells by > default don't include dotfiles in some glob expansions and ls(1) doesn't > include them in directory listings. Of course, either of the above can > be overridden: 'echo * .*' or 'ls -a' will show all files including > dotfiles. > > The one slightly tricky thing about dealing with dotfiles is the > presence of '..' -- the standard link to the directory above the current > one. If you accidentally include that in a list of directories to > recurse through, then you'll end up affecting a bunch of stuff that > maybe you didn't expect. So long as you are aware of the possibility > it's pretty easy to avoid this problem. > > To make a copy of your home directory on tao to a temporary directory on > ethic, personally I'd use rsync(1) [in ports as net/rsync]. Then you > can just do: > > % rsync -avx --delete ~/ ethic:/home/kline/ > > It will default to running over ssh(1), so you need to make sure you can > ssh from tao to ethic before you begin. > > The neat thing is that you run that command repeatedly, and each > subsequent time it will copy only what has changed on tao over to ethic. > > I see someone has given instructions for setting up anonymous rsync -- > that's another possibility, but probably a bit OTT for this particular > job. Anonymous rsync is probably best thought of as a superior > replacement for anonymous FTP. > > Cheers, > > Matthew > at least for me, gtar fails to pick up dotfiles. rsynx copies =everything=, and it looks like the test rsync script i posted last night was working all along. it was So fast that i assumed it was bombing entirely. i will 2-ck a few more files before i am sure. a question to the list is how can i copy ALL of /home to my new server? and to you, matthew, does --delete rm out of date files or directories? what about ?VS, given that i have virtually everything under [CR]VS control? slightly offtopic is that i accidently rm'd a file on tao one morning after a few minutes work. a copy was safely croned to ethic..... (yes, i needed mmore coffee, but i was giving thanks to zeus that hours of research and writing were safe!) gary > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matthew@infracaninophile.co.uk Kent, CT11 9PW > -- 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