equivalent to linux cp -al
Ben House
bhouse2 at unifiednetworkservices.ca
Mon Feb 20 10:01:25 PST 2006
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 at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Chuck Swiger
Sent: Sunday, February 19, 2006 10:14 AM
To: Matias Surdi
Cc: freebsd-questions at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list