In the hope of saving others from hours of tedious recovery work,

document that cp still isn't very useful for recursive copies even
with the -R flag.  This is because hard links are broken by cp.
This commit is contained in:
Stephen McKay 2001-02-04 02:02:38 +00:00
parent 5d1731a783
commit b931f9b350
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71977

View File

@ -102,6 +102,16 @@ indirected through, and for
to create special files rather than copying them as normal files.
Created directories have the same mode as the corresponding source
directory, unmodified by the process' umask.
.Pp
Note that
.Nm
copies hard linked files as separate files.
If you need to preserve hard links, consider using
.Xr tar 1 ,
.Xr cpio 1 ,
or
.Xr pax 1
instead.
.It Fl f
For each existing destination pathname, remove it and
create a new file, without prompting for confirmation