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

Re: secure install



On Sat, Feb 17, 2001 at 06:21:04PM +0100, Carel Fellinger wrote:
> On Sat, Feb 17, 2001 at 02:49:03PM +0100, Thor wrote:
> ...
> > Speak for cloning a single partition then i suggest a simple
> > 'cp -ax /mount_point_of_original_parition /mount_point_of_target_partiton'
> > the 'a' stand for archive (recursive and same permission)
> > and with the 'x' the copy don't go out the indicated filesystem.
> > you can find the same suggestion in How-To/Large-Disk
> 
> The disadvantage of this command is that it doesn't preserve hardlinks.

Really?  Mine preserves hard (and soft) links.


steve@riemann{/tmp}ls -l a b
ls: b: No such file or directory
total 3
lrwxrwxrwx    1 steve    steve           3 Feb 17 14:09 four -> one
-rw-r--r--    1 steve    steve           4 Feb 17 14:08 one
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 three
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 two
steve@riemann{/tmp}cp -a a b
steve@riemann{/tmp}ls -l a b
a:
total 3
lrwxrwxrwx    1 steve    steve           3 Feb 17 14:09 four -> one
-rw-r--r--    1 steve    steve           4 Feb 17 14:08 one
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 three
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 two

b:
total 3
lrwxrwxrwx    1 steve    steve           3 Feb 17 14:13 four -> one
-rw-r--r--    1 steve    steve           4 Feb 17 14:08 one
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 three
-rw-r--r--    2 steve    steve           9 Feb 17 14:08 two
steve@riemann{/tmp}cp --version
cp (fileutils) 4.0.37
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.

Copyright (C) 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
steve@riemann{/tmp}




Reply to: