cp -a works, i just like pipes.

On Fri, Jan 15, 2010 at 1:09 PM, Dale <[email protected]> wrote:

> Hazen Valliant-Saunders wrote:
>
>> Tar is your friend and ally.
>>
>> 1. install and Mount the disk to a mount point.
>> 2. Use tar in for it's intended purpose
>> https://help.ubuntu.com/community/BackupYourSystem/TAR
>> 3. remove old drive, & configure the new one as your primary.
>> 4. get a drink.
>>
>> On Fri, Jan 15, 2010 at 12:33 PM, Jarry <[email protected] <mailto:
>> [email protected]>> wrote:
>>
>>    Hi, I'm facing this problem:
>>
>>    I want to exchange hard-drive in my computer for other, bigger
>>    one. I do not want to add new hard-drive somewhere on mount-point
>>    permanently, I just want to copy everything from the old drive
>>    to the new one and then get rid of the old one. And of course,
>>    I'd like to use my computer as before. What is the best (maybe
>>    I should ask for safest) way to acomplish this?
>>
>>    First I thought about "cp -a". But I'm not sure which directories
>>    I should skip (/proc, maybe some other like /dev?). And I do not
>>    know how cp handles links (if I first copy link and later target,
>>    where is the link pointing? to the original file or its copy?).
>>
>>    Maybe dump/restore is better solution? Or something else?
>>
>>    Jarry
>>
>>    --    _______________________________________________________________
>>    This mailbox accepts e-mails only from selected mailing-lists!
>>    Everything else is considered to be spam and therefore deleted.
>>
>>
>>
>
> I have done this several times and only used cp -a.  I just skipped /dev,
> /proc, /tmp and other none needed ones.  Don't forget to copy console and
> null in /dev tho.
>
> Dale
>
> :-)  :-)
>



-- 
Hazen Valliant-Saunders
IT/IS Consultant
(613) 355-5977

Reply via email to