diff options
author | Stephen McKay <mckay@FreeBSD.org> | 2001-02-04 02:02:38 +0000 |
---|---|---|
committer | Stephen McKay <mckay@FreeBSD.org> | 2001-02-04 02:02:38 +0000 |
commit | b931f9b3501d090242dfce350b95100c6b1701c1 (patch) | |
tree | c180e79c90bcbdbdaa0dd5669a5bf236ba2b59d2 /bin/cp | |
parent | 5d1731a783b688cb06c8db01375d75396ac5d75a (diff) | |
download | src-b931f9b3501d090242dfce350b95100c6b1701c1.tar.gz src-b931f9b3501d090242dfce350b95100c6b1701c1.zip |
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.
Notes
Notes:
svn path=/head/; revision=71977
Diffstat (limited to 'bin/cp')
-rw-r--r-- | bin/cp/cp.1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1 index 5fa5116a496b..852a53bddc9d 100644 --- a/bin/cp/cp.1 +++ b/bin/cp/cp.1 @@ -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 |