From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 12:30:17 2003 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 B261116A4C0 for ; Thu, 21 Aug 2003 12:30:17 -0700 (PDT) Received: from gate.volant.org (gate.volant.org [207.111.218.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5437D43FDF for ; Thu, 21 Aug 2003 12:30:17 -0700 (PDT) (envelope-from patl+freebsd@volant.org) Received: from 64-144-229-193.client.dsl.net ([64.144.229.193] helo=[192.168.0.13]) by gate.volant.org with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.33 #1) id 19pv8S-000EUE-00 for freebsd-questions@freebsd.org; Thu, 21 Aug 2003 12:30:16 -0700 Date: Thu, 21 Aug 2003 12:30:05 -0700 From: Pat Lashley To: freebsd-questions@freebsd.org Message-ID: <4094160000.1061494205@mccaffrey.phoenix.volant.org> X-Mailer: Mulberry/3.1.0b4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Copying an entire tree 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, 21 Aug 2003 19:30:18 -0000 Is there any simple clean way to copy an entire directory tree and preserve both the flags (like schg) AND hard links within the tree? (And, of course, preserve device special nodes, etc.) cp -r Copies hardlinked files as separate files cpio Doesn't preserve flags pax Doesn't preserve flags dump Only works on entire filesystems If it matters, I'm particularly interested in doing this on RELENG_5_1; but a solution that works in 4-STABLE would also be appreciated. Thanks, -Pat Curiosity is a willing, a proud, an eager confession of ignorance. - Leonard Rubenstein