[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Moving Debian from one HD to another



Martin Str|mberg wrote:

> Just wanted to warn you that cp copies symbolic links as real files.
> Thus if you had:
> 
> -rw-r-----   1 ms318    erisoft        4 Apr 11 11:07 jjj
> lrwxrwxrwx   1 ms318    erisoft        3 Apr 11 11:07 kkk -> jjj
> 
> in old and did "cp -r old new/" you would get
> 
> -rw-r-----   1 ms318    erisoft        4 Apr 11 11:07 jjj
> -rw-r-----   1 ms318    erisoft        4 Apr 11 11:07 kkk
> 
Oops.  Another gotcha.  Is there a flag to cp to preserve links as
links?  The disadvantage of making a beeg tarfile is that it will take
up a lot of room, so you need to have 3x(distribution size) available to
do it that way.

-- 

David L. Johnson         		dlj0@lehigh.edu, dlj0@netaxs.com
Department of Mathematics		http://www.lehigh.edu/~dlj0/dlj0.html
Lehigh University
14 E. Packer Avenue			(610) 758-3759
Bethlehem, PA 18015-3174		(610) 828-3708



Reply to: