Tuesday, November 20, 2012

Moving /home Data From Old System To a New Linux System


Copy all files and directories using scp

The easiest way to copy all files (including hidden dot files) is as follows using the scp command:
$ scp -r /home/you/. you@new-system:/home/youOR
$ scp -r /home/you/. you@192.168.1.100:/home/you

Recommended Tool

I recommend using the rsync command - a fast and extraordinarily versatile file copying tool as follows. Login to your old laptop and type:

$ cd /home/you
$ rsync -avz * user@newsystem:/home/user/

OR
$ rsync -avz * user@192.168.1.10:/home/user/

No comments:

Post a Comment