Moving 6GB of data files to another server

Discussion in 'Site & Server Administration' started by xpgo, Aug 10, 2007.

  1. #1
    Hello,

    Can please any expert in Linux administration give me a help?
    I want to move from my old shared hosting server to my new dedicated server.

    I need to move 6GB of files from the old to new one.
    Just can't find the best way to do it.
    Tried "scp" and "rsync" but it always gives some errors at the middle of the transfer process.

    Can someone please help out with the proper way of doing this?
    Thank you.
     
    xpgo, Aug 10, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cyanide, Aug 10, 2007 IP
  3. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What about download with ftp from old server and upload with ftp to new server? Need help pm me ;)
     
    bouncer69, Aug 10, 2007 IP
  4. xpgo

    xpgo Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    6GB? you mean downloading to my computer and then upload it to new server from computer?
     
    xpgo, Aug 10, 2007 IP
  5. horatiub

    horatiub Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would use an FTP server or wget
     
    horatiub, Aug 10, 2007 IP
  6. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Yes...other solution is not working good. I do always like that.
     
    bouncer69, Aug 10, 2007 IP
  7. xpgo

    xpgo Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    can you please post here the complete TAR and GZIP command to archive and compress all files all together?
    thanks
     
    xpgo, Aug 10, 2007 IP
  8. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can make your files directory to a tar file then wget to the new server.

    tar -cvf /direcotry.tar direcotry/

    or if you want to compress also

    tar -czvf direcotry.tgz direcotry/
     
    bouncer69, Aug 10, 2007 IP
  9. 4free-articles.com

    4free-articles.com Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    if your host support curl and shell, you can use it:

    curl hxxp://www.abc.com/data.sql > data.sql
     
    4free-articles.com, Aug 10, 2007 IP
  10. xpgo

    xpgo Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i'm trying to use:

    tar -czvf backup.tgz /home/homedir/

    How can i exclude tar from including the same backup.tgz file in the backup?
     
    xpgo, Aug 11, 2007 IP
  11. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It will not include backup.tgz if you use this command

    tar -czvf direcotry.tgz direcotry/

    It could be like tar -czvf direcotry.tgz public_html/ or tar -czvf direcotry.tgz htdocs/ etc
     
    bouncer69, Aug 11, 2007 IP
  12. samy

    samy Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    IF ur server and the another server have Cpanel

    u cand transfer a full backup by chose " copy account "

    Samy ,
     
    samy, Aug 11, 2007 IP
  13. xpgo

    xpgo Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    already tried that, gets corrupted missing files and directories after moving...
    I managed now to compress file to .TGZ, deleted first some old trash and then compressed. Its about 3GB tgz format. Uploading now directly from shell into new server using FTP. I think now its working...
     
    xpgo, Aug 11, 2007 IP
  14. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #14
    I've had to move a couple gig site before using that method. It sucks but it's the only way I could get it to work.
     
    bigrollerdave, Aug 11, 2007 IP
  15. xpgo

    xpgo Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Did it now. Task completed.
    Thank you.
    Now will do the same for the MySQL database.
     
    xpgo, Aug 11, 2007 IP