RE: equivalent to linux cp -al

2006-02-20 Thread Ben House
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


equivalent to linux cp -al

2006-02-19 Thread Matias Surdi

Hi,


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?

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: equivalent to linux cp -al

2006-02-19 Thread Matias Surdi

Matias Surdi escribió:

Hi,


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?

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




Replying  to myself.

I've noticed that I've to use cpio instead.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: equivalent to linux cp -al

2006-02-19 Thread Chuck Swiger
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 [EMAIL PROTECTED]