+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
*nix Thread, Transfer files from desktop to laptop in Technical; I have just got a new laptop and I want to install Ubuntu 9.10 on it. My desktop PC has ...
  1. #1
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14

    Transfer files from desktop to laptop

    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.

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    rsync, which can handle interrupted transfers, or scp.
    Last edited by powdarrmonkey; 21st December 2009 at 11:36 PM.

  3. Thanks to powdarrmonkey from:

    llawwehttam (22nd December 2009)

  4. #3
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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.

  5. #4
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111

  6. #5

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    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.

  7. Thanks to srochford from:

    llawwehttam (22nd December 2009)

  8. #6
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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!

  9. #7
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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
    Code:
    rsync -v -e ssh root@192.168.0.3:/home/llawwehttam
    from my laptop to copy my home directory 'llawwehttam' from my desktop?

    Hmm or would it be easier to use
    Code:
    rsync -v -e ssh llawwehttam@192.168.0.3:/*
    or would that be too risky?

    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 ?
    Code:
    rsync -v -e ssh root@192.168.0.3:/home/llawwehttam /Desktopbackup
    for instance
    Last edited by llawwehttam; 22nd December 2009 at 01:15 PM.

  10. #8

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Close. Assuming you are in your home directory, I suggest:

    Code:
    rsync -avz 192.168.0.3:~/ .
    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).

    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.

  11. Thanks to powdarrmonkey from:

    llawwehttam (23rd December 2009)

  12. #9
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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.

  13. #10

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.

  14. #11
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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.

  15. #12
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    IDLE (Python) seems to be the best

    Learn python by writing games!

    http://inventwithpython.com/chapters/

  16. Thanks to somabc from:

    llawwehttam (23rd December 2009)

  17. #13

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    I would also have said IDLE.

  18. #14
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    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.

  19. #15
    llawwehttam's Avatar
    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    223
    Thank Post
    56
    Thanked 3 Times in 3 Posts
    Blog Entries
    2
    Rep Power
    14
    Hmm now that its got on to transferring movies its slowed down, but I suppose its still quite fast considering the amount im copying.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 3rd June 2011, 11:01 AM
  2. Desktop/laptop offline files
    By leco in forum How do you do....it?
    Replies: 3
    Last Post: 10th August 2009, 10:56 AM
  3. Tip:: WHM transfer : files get written blank?
    By contink in forum Web Development
    Replies: 0
    Last Post: 24th September 2008, 09:59 PM
  4. Transfer Files & Settings From PC To Mac
    By GlennT in forum Office Software
    Replies: 5
    Last Post: 16th February 2008, 12:30 AM
  5. files and settings transfer wizard
    By beeswax in forum Windows
    Replies: 2
    Last Post: 17th May 2006, 08:25 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •