The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to upload file using FTP command?

Discussion in 'General Discussion' started by hbhb, Sep 26, 2011.

  1. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    How do I upload a file using FTP command?

    The files are located inside server A. I am now connected in server A and wish to upload it to server B.

    Say for example:
    Server A: 192.168.1.1
    Server B: 192.168.1.2

    From Server A:
    [192.168.1.1] #ls
    billing_billing.sql <-- the file is here

    [192.168.1.1] #ftp
    ftp(192.168.1.1)> open 192.168.1.2
    username: server2
    password: *******
    > put billing_billing.sql
    local: billing_billing.sql remote: billing_billing.sql
    local: billing_billing.sql: No such file or directory

    So how do I upload the sql file from server A into server B?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could run the following command from "Server A":

    Code:
    # ftp username@192.168.1.2
    # put /path/to/billing_billing.sql
    Using the full path should ensure it's uploaded correctly.

    Thank you.
     
Loading...

Share This Page