Date: Sun, 19 Feb 2006 10:14:22 -0500 From: Chuck Swiger <cswiger@mac.com> To: Matias Surdi <matiassurdi@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: equivalent to linux cp -al Message-ID: <43F88B4E.4010104@mac.com> In-Reply-To: <dta136$h4i$2@sea.gmane.org> References: <dta136$h4i$2@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43F88B4E.4010104>