nixCraft Poll

Topics

Moving /home data from old system to new Linux system

Posted by Vivek Gite [Last updated: May 1, 2006]

Recently my friend brought a new Laptop. He installed Red Hat Linux workstation 4.0. However, after installation he realized that he lost all his Mozilla thunderbird emails and Firefox bookmarks, chat client logs and other files.

I told him just copy all old files from /home/you to new system /home/you directory. He was trying some age-old tutorial from net, which explains how to copy files using tar and restore it back to new system. During this procedure, he was messing up with file system permission.

Finally, with frustration he brought both laptops to my place. I demonstrate both of following methods that can copy files in jiffy.

Copy all files and directories using scp
I quickly assigne both of his laptop new IP address and using scp I copied all files:

$ scp –r /home/you/. you@new-system:/home/you

OR

$ scp –r /home/you/. you@192.168.1.100:/home/you

Now everything is copied to new system (IP 192.168.1.100). And he got all his emails, bookmarks and files.

Appending a dot (.) symbol (current directory) is very important when you specify /home/you/ as a source path. If you skip dot in path it will only copy only normal files and scp will skip all hidden files.

Copy all files and directories using graphical method

  1. Login to old system
  2. Open two instants of Konqueror browser (i.e. open it two times)
  3. Go to first window and type in Location bar /home/yourname
  4. By default Konqueror will not display hidden files/directories. To see hidden files or folders use the Menubar View > Show Hidden Files option.
  5. Now select all files copy them (CTRL + C or Menubar Edit > Copy option)
  6. Now go to second Konqueror window and type in Location bar and type command: fish://you@newsystem
  7. You are using Konqueror with ssh to manage files on a Remote system called newsystem. You can use IP address instead of hostname.
  8. It will prompt for ssh password. Once logged in you can paste the files and folder
  9. Now just past all files and folder

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Anonymous Says:

    Actually isn’t correct this: fish:you@newsystem

    Type fish://you@newsystem instead :-}

  2. LinuxTitli Says:

    Thanks for the heads up

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.