euglug.org

[Eug-lug] Gentoo system – moving drives

작성자

카테고리:



Allen BrownSat Jul 10 16:16:27 PDT 2004

On Sat, 10 Jul 2004, Rob Hudson wrote:

> So which is better...
> 
> cp -a 
> or tar cfl . | tar xfp
> 
> -Rob

I can never remember the subtle details for the cp options.  So I
tend to lose the symlinks, turning them into files.  With tar that
is not a problem.
--
Allen Brown
  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
        allen_brown at agilent.com	            abrown at peak.org
  The standard of intellect in politics is so low, men of moderate mental
  capacity have to stoop to reach it. --- Hillaire Belloc


> On 20040710.0815, Bob Miller said ...
> 
> > 	# mkdir /new
> > 	# mkfs -j /dev/hdc{1,5,6}
> > 	# mount /dev/hdc5 /new
> > 	# cd /new
> > 	# mkdir -m 755 boot var proc dev sys # others?
> > 	# mount /dev/hdc1 boot
> > 	# mount /dev/hdc6 var
> > 	# (cd /; tar cfl - .) | tar xfp -    # Note the "l" flag!
> > 	# (cd /home; tar cfl - .) | tar xfp -
> > 	# (cd /usr; tar cfl - .) | tar xfp -
> > 	# cd /
> > 	# umount /new/boot /new/var /new
> > 	# rmdir /new
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>