cp versus cpio

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: cp versus cpio
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.

I also like -d (--make-directories) for creating leading directories as
needed.

As for access time, GNU cpio 2.5 has:
       -a, --reset-access-time
              Reset the access times of files after reading them, so that it
              does not look like they have just been read.


Jeremy C. Reed
http://bsd.reedmedia.net/