On 5/24/05, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
> > and "cp -pvr <from_here> <to_there>" everything
>
> cp will get everything and preserve links and whatnot?

I don't think so.  Not "cp -pvr" anyway.  You have to add -d for
symbolic links.  From the cp man page:

-p, --preserve
     Preserve the original files' owner, group, permissions, and  timestamps.

-r
     In  file-utils  4.1: synonym of -R.  In file-utils 4.0: Copy
directories recursively, copying any non-directories and non-symbolic 
links  (that is,  FIFOs  and special files) as if they were regular
files. This silly behaviour is obtained in file-utils 4.1 if the
--copy-contents option is given.

-v, --verbose
     Print the name of each file before copying it.

-d
     Copy symbolic links as symbolic links rather than copying the
files that they point to, and preserve hard  links between source 
files  in  the copies.

     With  file-utils  4.0 the long option --no-dereference was a
synonym for -d, with file-utils 4.1 it is a synonym for -P, while -d 
is  equivalent to --no-dereference --preserve=links.

Probably what you want is -a:

-a, --archive
     Preserve as much as possible of the  structure  and attributes 
of  the original  files  in  the copy (but do not preserve directory
structure).   Equivalent to -dpPR.

This is the GNU version of cp, anyway.

-todd


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to