Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set up a new pc, and I want to copy data from my old pc to it, without having to manually copy everything to an external drive.

I guess I could do something with rsync over ssh, but have no idea of how to accomplish that.


share|improve this question
up vote 4 down vote accepted

rsync is pretty easy to use. You will need to know the ip address or name of the machine. So if your new machine is called shiny and the old machine is called abandoned, and you have the same user on both machine then to copy to the data over you would type this on shiny:

rsync avz username@abandoned:/home/user /home/user

Substitute the IP addresses if you don't know the names. You should be able to ping the other machine if they are on the same network. You can get the IP address by typing ifconfig.

Alternatively, you could take the old hdd and mount it either on the machine physically if its a desktop in the spare slot and just copy the files over. Or use a sata/usb lead to mount it, or one of these toasters:

share|improve this answer
Thanks! I cannot vote up your answer, as I need reputation. When I get it, I'll vote your answer up ;) – Xavi Ivars Oct 17 '12 at 21:53

You can easily use Nautilus to copy your data from a remote PC: Connect both units via ethernetfor example, open Nautilus on the new machine, press F3 to have two file browsers in your window, navigate the left one to your destination directory and the right one to your source directory (using "network", you need to know username and password of the old machine). Now you can simply drag and drop items from left to right and vice versa.

share|improve this answer
How? Can you please add an explanation to the answer? – Tom Brossman Oct 17 '12 at 22:27
I editet my answer. – speter Oct 18 '12 at 6:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.