From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 15:14:22 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 BBE4016A420 for ; Sun, 19 Feb 2006 15:14:22 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68B2143D45 for ; Sun, 19 Feb 2006 15:14:22 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/8.12.11/smtpout03/MantshX 4.0) with ESMTP id k1JFEMdX012931; Sun, 19 Feb 2006 07:14:22 -0800 (PST) Received: from [192.168.1.3] (pool-68-160-251-207.ny325.east.verizon.net [68.160.251.207]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id k1JFEJ7I002235 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 19 Feb 2006 07:14:21 -0800 (PST) Message-ID: <43F88B4E.4010104@mac.com> Date: Sun, 19 Feb 2006 10:14:22 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Matias Surdi References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sun, 19 Feb 2006 15:14:22 -0000 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