Re: migrating slackwareOS to a new hard drive? On Wed, 4 Aug 2004, Sami Nuuttila wrote:
> William Hunt <wjh@huntbros.net> writes:
>> (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 - )
>
> I think its advisable to replace (cd ${NEWMNT} ; tar -xpf - ) with
> (cd ${NEWMNT} && tar -xpf - ) so that in the case of making some typo
> in ${NEWMNT} you don't end up messing your files...
yes, you're right, very good point.
--
Fire the Liars - Impeach Bush and Cheney!
Prosecute the criminals - Indict Rumsfeld and Ashcroft!
Corruption starts at the top.
William Hunt, Portland Oregon USA |