Subject: Re: Upgrading (replacing) hard drive
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/26/2001 09:41:33
On Wed, 26 Sep 2001, Claude Marinier wrote:
> Actually, what Phil suggests might work since he first creates mount
> points and mounts all the partitions. Will cp preserve the ownership
> and permissions?
Not with just the "-R" option (as shown in the other email). Also use the
"-p" option to preserve the modification time, etc.
On Wed, 26 Sep 2001, Matthias Pretzer wrote:
> Will cp copy symlinks, fifos...?
It does copy symlinks.
The -p option by itself doesn't copy fifos, but with the "-R" it does copy
fifos.
$ mkfifo test-fifo
$ cp test-fifo test-fifo2
^C
$ cp -p test-fifo test-fifo2
^C
$ cp -pR test-fifo test-fifo2
$ ls -l test-fifo*
prw-r--r-- 1 reed wheel 0 Sep 26 09:39 test-fifo
prw-r--r-- 1 reed wheel 0 Sep 26 09:39 test-fifo2
(This is cp from 1.5.1_BETA i386.)
Jeremy C. Reed
http://www.reedmedia.net/