From owner-freebsd-questions@FreeBSD.ORG Thu Dec 23 06:09:39 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 EF88016A4CE for ; Thu, 23 Dec 2004 06:09:39 +0000 (GMT) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54BC143D49 for ; Thu, 23 Dec 2004 06:09:39 +0000 (GMT) (envelope-from alex@mactutor.biz) Received: from [192.168.0.50] (really [24.52.22.23]) by mta11.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20041223060938.NJGO1403.mta11.adelphia.net@[192.168.0.50]>; Thu, 23 Dec 2004 01:09:38 -0500 In-Reply-To: <1103778966.41ca5496059b9@mail.chubbo.net> References: <1103778966.41ca5496059b9@mail.chubbo.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3BBEB351-54A9-11D9-8FFD-000D9347C178@mactutor.biz> Content-Transfer-Encoding: 7bit From: Alexander Sendzimir (owner) Date: Thu, 23 Dec 2004 01:09:41 -0500 To: Joseph X-Mailer: Apple Mail (2.619) cc: freebsd-questions@freebsd.org Subject: Re: Copying a directory hierarchy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 06:09:40 -0000 Another variation: tar cf - -C /source/path directory | tar xf - -C /destination/path On Dec 23, 2004, at 12:16 AM, Joseph wrote: > > >>>> How does on copy a complete directory hierarchy, including any >>>> hidden >>>> files? > > cd /path > tar cf - . | (cd /other/path; tar -xf -) > > works like a charm. > > joe > _______________________________________________ > 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" > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Alexander Sendzimir (owner) 802 863 5502 MacTutor: Apple Mac OS X Consulting info@mactutor.biz