cp versus cpio

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Buettner
Date:  
Subject: cp versus cpio
On Oct 24, 1:24pm, der.hans wrote:

> Am 23. Oct, 2003 schw=E4tzte Jeremy C. Reed so:
> =


> > On Thu, 23 Oct 2003, Lynn David Newton wrote:
> >
> > > Does anyonw have any particular insight into the
> > > advangages/disadvantages of using cp -R versus cpio?
> >
> > cpio is useful because it can be piped over a ssh connection.
> =


> Good point that tar and cpio work well for that. I would prefer cpio ov=

er a
> pipe if it would preserve the directory timestamps.


When you want to do this kind of thing -- copy directory hierarchies
from one machine to another -- it's worth looking at rsync, particularly
if the two hierarchies need to be periodically synchronized.

Kevin