Move files

Discussion in 'Site & Server Administration' started by sameera, Sep 20, 2008.

  1. #1
    Hi guys i want to move files from a Cpanel server to a DirectAdmin server.
    The cpanel webhost has created a complete cpanel backup file (3GB) and put it in their FTP. I don't have access to cpanel server anymore only the FTP

    I have full access with root to new DirectAdmin server so i want to get that file to new server and extract that file and place it in new server.
    There are no scripts only lot of media files around 3GB.

    Can you let me know how to do it? Please give exact commands if using SSH
     
    sameera, Sep 20, 2008 IP
  2. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    use tar -xzvf to extract the file then move it :)
     
    nimhost, Sep 21, 2008 IP
  3. sameera

    sameera Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Thanks for the reply.
    First move then extract right?

    Can you please tell me how to move. what the command?
     
    sameera, Sep 21, 2008 IP
  4. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #4
    use the simple wget command via ssh.

    1. Login as root via SSH
    2. go to the location where you want to copy it.
    3. wget http://yourdomain.com/file.tar

    I hope it will help.
     
    Pathan, Sep 21, 2008 IP
  5. sameera

    sameera Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Thanks for your reply :)
    wget not working coz backup file on a password protected ftp server.
    I want to get that zip file to my new server. I have root and full access to new server. No access to old server other than ftp.

    I am looking for a command which will download a zip file from remote FTP server wich has username and password to login.
     
    sameera, Sep 21, 2008 IP
  6. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    SSH to your new server and execute the following commands:

    1) ftp ftp.oldhost.com (you'll be asked for your username/password)
    2) cd /path/to/directory
    3) get backup.tar.gz
    4) bye

    You'll return to the shell prompt on your server, then execute the following:

    1) mv backup.tar.gz /path/to/wherever/you/want/your/media/files
    2) tar -xvzf /path/to/wherever/you/want/your/media/files/backup.tar.gz

    Then you should be done.
     
    jliu, Sep 21, 2008 IP
  7. sameera

    sameera Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    Thanks for your reply bro. but when i ftp old server from new server's ssh it says

    [root@server ~]# ftp ftp.abcd.net
    Connected to ftp.abcd.net.
    220 ProFTPD 1.3.1 Server (ftp.abcd.net) [xx.xxx.91.39]
    500 AUTH not understood
    500 AUTH not understood
    KERBEROS_V4 rejected as an authentication type
    ftp: relocation error: ftp: symbol krb5int_labeled_fopen, version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference
    [root@server ~]#

    can you help me?
     
    sameera, Sep 21, 2008 IP
  8. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #8
    use this but i'm not sure if work or not since kerberos is your main issue

    wget --ftp-user=USER --ftp-password=PASS ftp:\\ipaddress\path\to\your\file.tar.gz
     
    nimhost, Sep 21, 2008 IP
  9. sameera

    sameera Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    Thanks guys i was able to move the files using
    wget -c ftp://user:pass@abcd.net/
    Code (markup):
    and extracted it using tar -xvzf command

    But now can't modify or delete the files from FTP. Says permission denied.

    Is there a command from SSH to correct all permissions to work with my new server?
     
    sameera, Sep 22, 2008 IP