On 2004-08-13, Rich Grise <null@example.net> wrote:
> James wrote:
>
>> Widgeteye wrote:
>>>
>>> On 2004-08-04, W <still@none.com> wrote:
>>> > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William
>>> > Hunt bitched and moaned:
>>> >> (5) use tar to copy live data from old mountpoints to new mountpoints.
>>> >> for example:
>>> >>
>>> >> OLDMNT=/
>>> >> NEWMNT=hdb2
>>> >> cd ${OLDMNT}
>>> >> tar --one-file-system -cpvf - . | ( cd ${NEWMNT} ; tar -xpf - )
>>> >
>>> > `tar` does not recreate /dev properly, the last time I looked.
>>> >
>>> >
>>>
>>> Maybe I do stuff wrong but I just go into the root directory of the old
>>> drive and do this, which works everytime BTW. In fact just did it last
>>> week.
>>>
>>> cd /
>>> cp -a * /newdrive
>>>
>> Make sure that you don't have any CDROMs mounted or they will get cpied
>> too!
Well ya do have to use a little common sense.
>
> I've heard that it can have problems copying /dev/* and /proc/*; at least
> they won't be correct at the target.
>
> And I think cp gets confused when it starts trying to copy /newdrive onto
> itself.
Never ran into a problem. And have been doing it this way since
the early 90's.
Nothing has ever been broken by the process. Maybe I m just damned lucky.
For years.
>
> Have Fun!
> Rich
>
--
--------------------------------------------
[Thou] rump-fed ronyon!
-William Shakespeare, Macbeth