How to move large size file via ssh

Discussion in 'Site & Server Administration' started by usf, Nov 26, 2010.

  1. #1
    Hello Sir, I have a problem. I am moving the server. And I Tarnsfer the public_html tar file from old server to new server via this command:

    rsync -avze ssh /home/user5/public_html/homebackup.tar root@IP:/root
    Code (markup):
    I run this command on the old server. But i am facing a problem.

    On the new server i did not have direct access to the root its indirect. like first i have to login with the
    admin1
    su -
    than 
    root
    Code (markup):
    Please tell me the way how to move the file.

    Thank you very much
     
    usf, Nov 26, 2010 IP
  2. supportex

    supportex Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I am not sure what's your problem,
    but it seems like you need to transfer files to your account homedir,
    then switch to root and unpack your archive.
     
    supportex, Nov 27, 2010 IP
  3. usf

    usf Active Member

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    After I log in, I need to do a "su -" command and couldn't quite figure out how to do that.

    Because the user has no access and only with root i can do this

    how can i do this with root while there is need to su - for root access ?
    how can i do this?
     
    usf, Nov 27, 2010 IP
  4. supportex

    supportex Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Could you please describe more exactly what couldn't you do?
     
    supportex, Nov 28, 2010 IP
  5. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #5
    not sure why is it a biggie. you could
    a) ftp/secure ftp it via 3rd party, e.g. home computer
    b) rsync it via a user account then move it whenever you want using root
     
    atxsurf, Nov 29, 2010 IP
  6. ishan

    ishan Prominent Member

    Messages:
    2,212
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    325
    #6
    Login to new server as admin , switch to root and download from old server using FTP or SCP.
     
    ishan, Nov 30, 2010 IP
  7. Annamina

    Annamina Guest

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yeah, I'd recommend transfer your old file this way to avoid troubles if you are not familiar with Unix/linux command
     
    Annamina, Dec 1, 2010 IP
  8. Imran

    Imran Notable Member

    Messages:
    2,340
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    230
    #8
    Login to New Server Via SSH and run this command:

    wget http:// your site name .com/ homebackup.tar
    Code (markup):
    With no space in between.
     
    Imran, Dec 2, 2010 IP
  9. blackvps

    blackvps Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    And then do "tar xvf homebackup.tar" on the new server.
     
    blackvps, Dec 2, 2010 IP