From owner-freebsd-questions@FreeBSD.ORG Mon Feb 20 18:01:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2C8E916A420 for ; Mon, 20 Feb 2006 18:01:25 +0000 (GMT) (envelope-from bhouse2@unifiednetworkservices.ca) Received: from tomts20-srv.bellnexxia.net (tomts20-srv.bellnexxia.net [209.226.175.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C804543D64 for ; Mon, 20 Feb 2006 18:01:23 +0000 (GMT) (envelope-from bhouse2@unifiednetworkservices.ca) Received: from mail.unifiednetworkservices.ca ([65.93.58.216]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060220180122.ISBH16051.tomts20-srv.bellnexxia.net@mail.unifiednetworkservices.ca> for ; Mon, 20 Feb 2006 13:01:22 -0500 Received: (qmail 40582 invoked by uid 1009); 20 Feb 2006 13:07:30 -0000 Received: from d235-235-208.home1.cgocable.net (HELO NOTEBOOK) (bhouse2@unifiednetworkservices.ca@24.235.235.208) by mail.unifiednetworkservices.ca with SMTP; 20 Feb 2006 13:07:30 -0000 From: "Ben House" To: "Chuck Swiger" , "Matias Surdi" Date: Mon, 20 Feb 2006 13:01:20 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: <43F88B4E.4010104@mac.com> Cc: freebsd-questions@freebsd.org Subject: RE: equivalent to linux cp -al 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: Mon, 20 Feb 2006 18:01:25 -0000 What about cpio? cpio -dplm should do what you need it to. This operates in pass-through to give you a recreation of the directories rather than an archive. Input is from standard i/p. HTH. BH -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Chuck Swiger Sent: Sunday, February 19, 2006 10:14 AM To: Matias Surdi Cc: freebsd-questions@freebsd.org Subject: Re: equivalent to linux cp -al Matias Surdi wrote: > I've a script on a linux box wich makes backups, it uses the "cp -al" > command to make hard links and preserve atributes. > > Is there an equivalent on FreeBSD? "cp -p" comes reasonably close, but will duplicate files rather than creating hard links. If you need to preserve hard links, consider using tar or maybe rsync to do the copying instead. -- -Chuck _______________________________________________ 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"