rsync, which can handle interrupted transfers, or scp.
I have just got a new laptop and I want to install Ubuntu 9.10 on it. My desktop PC has 8.10 and has all my videos/music/docs. I would like a fast way of transferring all my files across without too much fuss.
I don't really want to go out and buy a portable hard drive or anything as cash is pretty limited right now. Both computers have a connection to my router so I have considered a network share but is there any other way to transfer all my files to my laptop? I only have about 2 GB HDD space left on my desktop machine so I cant install anything huge.
I am quite used to SFTP but I'm not sure about using it for my entire home folder as I have had it stall on me in the past when transferring big files.
Last edited by llawwehttam; 21st December 2009 at 11:29 PM.
Last edited by powdarrmonkey; 21st December 2009 at 11:36 PM.
Wow, that was fast even for you!!
Thanks a lot.
I've seen rsync used before mainly for backups but have never got the courage up to try it myself.
rsync has a switch "-n, --dry-run" to show what would have been transferred - you can use this safely to see what's going to happen; if it shows the right files being copied the right way then you just run it without the switch and all is well.
I was considering ubuntu one but 2GB is a bit limited as I need to transfer about 53GB and I don't want to pay!
So with rsync to copy a folder from my desktop machine 192.168.0.3 to my laptop 192.168.0.4 would I be right in
from my laptop to copy my home directory 'llawwehttam' from my desktop?Code:rsync -v -e ssh firstname.lastname@example.org:/home/llawwehttam
Hmm or would it be easier to useor would that be too risky?Code:rsync -v -e ssh email@example.com:/*
I suddenly like rsync!!
EDIT:I think I forgot to specify the location I was copying to. Would it just copy to the folder I was in or would I need to specify a folder such as /desktopbackup ?
for instanceCode:rsync -v -e ssh firstname.lastname@example.org:/home/llawwehttam /Desktopbackup
Last edited by llawwehttam; 22nd December 2009 at 01:15 PM.
Close. Assuming you are in your home directory, I suggest:
This enables archive mode (preserve file states) and gzip compression (faster), and copies the contents of your home directory on 192.168.0.3 to the current directory, which you should ensure is your home directory on your laptop. It assumes your remote username is the same as your local; if not, use user@host notation to specify it, like you did in your post. '~' is short-hand for your home directory and '.' is short-hand for the current directory (like '..', which is the directory one level above current).Code:rsync -avz 192.168.0.3:~/ .
You probably don't need to specify '-e ssh' because modern rsyncs will try to use ssh by default. The man page is your friend, but it's quite long.
Ubuntu One is a nice service, but it seems silly to upload everything there and then download it a machine a few yards away again. You might as well do it locally
Last edited by powdarrmonkey; 22nd December 2009 at 11:53 PM.
Thanks again .
I really need to improve my knowledge of the command line as Ive been using it for 6 years now. I kinda want to learn a programming language as well, as writing in shell script has its limits. Might learn Python.
Python is a reasonable place to start, although some of its terminology is a bit weird - serialisation is called 'pickling' for example. It's a good general purpose language though.
At the moment I use ubuntu, What would the best editor be for writing python. I do like to have colour coding and a possible test output. I have tried bluefish but don't seem to have colour and gedit is a bit basic.
I would also have said IDLE.
I'm rsyncing now and its working great. I'm about 3/4 of the way through my movies and its been about an hour.
Hmm now that its got on to transferring movies its slowed down, but I suppose its still quite fast considering the amount im copying.
There are currently 1 users browsing this thread. (0 members and 1 guests)