From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 10:29:43 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 E72D51065697 for ; Sat, 28 Aug 2010 10:29:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 43F238FC1E for ; Sat, 28 Aug 2010 10:29:42 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o7SATZHj041776 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 28 Aug 2010 11:29:36 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4C78E509.6020701@infracaninophile.co.uk> Date: Sat, 28 Aug 2010 11:29:29 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: "'Gary Kline'" References: <20100827170737.GA96063@thought.org> <26118_1282929673_4C77F409_26118_366_1_D9B37353831173459FDAA836D3B434999FDCA57D@WADPMBXV0.waddell.com> <20100827211306.68e261be.freebsd@edvax.de> <20100828070231.GA98502@thought.org> In-Reply-To: <20100828070231.GA98502@thought.org> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA44F0E990D532DC872E466DE" X-Virus-Scanned: clamav-milter 0.96.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk 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: Sat, 28 Aug 2010 10:29:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA44F0E990D532DC872E466DE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. :-) >> >=20 > 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 --=20 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 --------------enigA44F0E990D532DC872E466DE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx45Q8ACgkQ8Mjk52CukIwk5ACfewSo1GLonRFRrL+cCcLx8mW2 +XMAnRtx9QmDp43dHQeON+pkr+ABa/U5 =Wfdu -----END PGP SIGNATURE----- --------------enigA44F0E990D532DC872E466DE--