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
- Login to old system
- Open two instants of Konqueror browser (i.e. open it two times)
- Go to first window and type in Location bar /home/yourname
- By default Konqueror will not display hidden files/directories. To see hidden files or folders use the Menubar View > Show Hidden Files option.
- Now select all files copy them (CTRL + C or Menubar Edit > Copy option)
- Now go to second Konqueror window and type in Location bar and type command: fish://you@newsystem
- You are using Konqueror with ssh to manage files on a Remote system called newsystem. You can use IP address instead of hostname.
- It will prompt for ssh password. Once logged in you can paste the files and folder
- Now just past all files and folder
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- 10 Greatest Open Source Software Of 2009
- My 10 UNIX Command Line Mistakes
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email this to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: May/1/2006


{ 2 comments… read them below or add one }
Actually isn’t correct this: fish:you@newsystem
Type fish://you@newsystem instead :-}
Thanks for the heads up