Date: Tue, 21 Dec 2004 21:13:15 -0800 From: Bill Campbell <freebsd@celestial.com> To: freebsd-questions@freebsd.org Subject: Re: Copying a directory hierarchy Message-ID: <20041222051315.GA66352@alexis.mi.celestial.com> In-Reply-To: <1103685781.33623.9.camel@chaucer> References: <1103680952.33623.2.camel@chaucer> <16840.55078.815394.941348@jerusalem.litteratus.org> <1103685781.33623.9.camel@chaucer>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041222051315.GA66352>