On 5/9/05, Gregory K. Ruiz-Ade <[EMAIL PROTECTED]> wrote:
> > There are some other flags you can give rsync to preserve things like
> > sparse files and hard links which cp is not aware of.

>From the cp man page:
==================

--sparse=WHEN
   A `sparse file' contains `holes' - sequences of zero bytes  that
   do  not  occupy any physical disk blocks; the `read' system call
   reads these as zeroes.  This can  both  save  considerable  disk
   space  and  increase speed, since many binary files contain
   lots of consecutive zero bytes.  By  default,  cp  detects  holes
   in input  source  files  via a crude heuristic and makes the
   corresponding output file sparse as well.

   The WHEN value can be one of the following:

   auto   The default behavior: the output file is  sparse  if  the
              input file is sparse.

   always Always  make the output file sparse.  This is useful when
              the input file resides on a filesystem that does not
              support sparse files, but the output file is on a
              filesystem that does.

   never  Never make the output file sparse.  If you find an
              application for this option, let us know.
==================

and
==================

   -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.
==================

Is this not what you were referring to?

Also, Gregory, my Linux man page says that -S handles suffixes in the
case that the destination file already exists, and -H handles symbolic
links only.  I wouldn't think GNU cp would differ as much as that from
cps in other lands.

-todd


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

Reply via email to