equivalent to linux cp -al
Chuck Swiger
cswiger at mac.com
Sun Feb 19 07:14:22 PST 2006
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
More information about the freebsd-questions
mailing list