Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

server to server directory transfer

Discussion in 'Command Line' started by night, Apr 16, 2012.

  1. night

    night Guest

    I have a freebsd NOAAport system running. So I have very limited knowledge of CMD line Linux. I am moving from 1and1.com to a godaddy.com server. What I would like to do is do a server to server file transfer. Keeping the directory structure intact. Both servers have ssh available. What are my options?

    Mark


     
  2. jschuhr

    jschuhr Guest

    Have you already researched rsync? More info here.
     
  3. Rob

    Rob Guest

    Another vote for rsync :)

    Something like:
    Code:
    rsync -avz /path/to/folder/ [email protected]:/path/to/folder/
    
    Practice a bit with it - whether or not to use the trailing slashes for instance always get me ;) Depending on the paths and what you're transferring, you'll change em up.
     
  4. night

    night Guest

    Godaddy nor 1and1 have that CMD rsnyc. That is strange that they would not provide a way for the owner to backup their sites.

    Mark
     
  5. night

    night Guest

    I'm sorry. 1and1 does have that CMD but Godaddy does not. Also when I open an ssh session with godaddy it is a bash prompt. Bash seems familiar.

    Mark
     
  6. night

    night Guest

    Godaddy does have a perl modual rsnyc.pm avalible to me.

    Mark
     
  7. night

    night Guest

    Godaddy uses bash. I am not familure with bash. If I have a perl script that calls the rsync.rm file from a ssh sesion with godaddy. Will that work with 1and1 rsync CMD?

    Mark
     
  8. Akendo

    Akendo Guest

    rsync is rsync. depends on the version. When you have bash available try to search for rsync via whereis. Maybe you find it. Else try to install it.
     
  9. scotty

    scotty Guest

    When I had to transfer from sever to server, I had to download, then upload via ftp. I do not reccomend this, it takes forever.
     
  10. night

    night Guest

    That is why I would love to do this with rsnyc.

    Mark
     
  11. Akendo

    Akendo Guest

    ftp either rsync are not the problem, i guess it will be more the connection. ftp may inefficiency but it's working. But i depends how much bandwidth your getting between the two Host provider.

    But good luck with that.
     
  12. night

    night Guest

    my connection is 20 dl and 2 ul I would think that the bandwith between godaddy and 1and1 would be much much higher.

    Is linux so hard that no one knows how to get these two sites talking to each other? Is there a better way to transfer the data than rsnyc?

    Mark
     
  13. Akendo

    Akendo Guest

    20 what? b? Please try to more in details, it's very hard to reply to this.

    rsync i quite the best for that job. Read a bit here about it. What real is great for you is the -z option for compression.

    But take a look about the doc, read the man page!
     
  14. night

    night Guest

    From the top.

    I want to transfer my files from 1and1.com to godaddy.com 1and1 has rsnyc but godaddy only has it as a perl script. Also godaddy uses bash. I am nofamiliarre with either. I really do not want to dl (download) all the files to my computer @ 20 mbits And then ul (upload) them @ 2mbits I have close to a tera of data to move.

    I am have oldman brain lock trying to find the right combination of commands to get this job done.

    Mark
     
  15. night

    night Guest

    Thankyou for helping an old man. I got all of it dl (downloaded) to my computer. And have begain ul(uploading) the files to godaddy server. I am ul(uploading) the important files first. And will deal with the others in a priority fastion.

    I just wish that we could have gotten rsnyc to work. I would think a lot of peple would beifit from it.

    Mark
     
  16. Ell

    Ell Guest

    Give this a bash? .... is your target user at server
    find . | tar cf - | ssh .... "cd somedir && tar xf -"
     
  17. nooran

    nooran Guest

    you can use scp
     
  18. Ell

    Ell Guest

    scp doesn't preserve directory structure.
     

Share This Page