From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 05:13:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C93D916A4CE for ; Wed, 22 Dec 2004 05:13:19 +0000 (GMT) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316EA43D2D for ; Wed, 22 Dec 2004 05:13:17 +0000 (GMT) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id 9A6CD11E8A6; Tue, 21 Dec 2004 21:13:15 -0800 (PST) Date: Tue, 21 Dec 2004 21:13:15 -0800 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20041222051315.GA66352@alexis.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <1103680952.33623.2.camel@chaucer> <16840.55078.815394.941348@jerusalem.litteratus.org> <1103685781.33623.9.camel@chaucer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1103685781.33623.9.camel@chaucer> User-Agent: Mutt/1.4.2.1i Subject: Re: Copying a directory hierarchy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 05:13:19 -0000 On Tue, Dec 21, 2004, Mike Jeays wrote: >On Tue, 2004-12-21 at 21:08, Robert Huff wrote: >> Mike Jeays writes: >> >> > How does on copy a complete directory hierarchy, including any hidden >> > files? >> > >> > "cp -rp" leaves them out. >> >> cp -rp * >> cp -rp .* ... >This doesn't copy hidden files in lower-level directories, only in the >top level. Thanks for the suggestion - a good idea that doesn't quite >do it. My usual incantation is: find . -print | cpio -pdumva $destdir Or if I know there's significant overlap rsync -varP ./ $destdir Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ To say that UNIX is doomed is pretty rabid, OS/2 will certainly play a role, but you don't build a hundred million instructions per second multiprocessor micro and then try to run it on OS/2. I mean, get serious. -- William Zachmann, International Data Corp